Initializermochidev.swift-webpush 0.4.2WebPush
init(unsafeTopic:)
Initialize a topic with an unchecked string.
init(unsafeTopic: String)
Prefer to use init(encodableTopic:salt:)
when possible.
Initialize a topic with an unchecked string.
init(unsafeTopic: String)
Prefer to use init(encodableTopic:salt:)
when possible.
import WebPush
struct Topic
Topics are used to de-duplicate and overwrite messages on push services before they are delivered to a subscriber.
@frozen struct String
A Unicode string value that is a collection of characters.
init(encodableTopic: some Encodable, salt: some DataProtocol) throws
Create a new topic from encodable data and a salt.
struct PushServiceError
An unknown Push Service error was encountered.
let response: HTTPClientResponse
The HTTP response that was returned from the push service..
init()
Create a new random topic.
init(from decoder: any Decoder) throws
var description: String { get }
let topic: String
The topic value to use.
func encode(to encoder: any Encoder) throws