Instance Propertymochidev.swift-webpush 0.4.2WebPush
topic
The topic value to use.
let topic: String
The topic value to use.
let topic: String
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()
Create a new random topic.
init(encodableTopic: some Encodable, salt: some DataProtocol) throws
Create a new topic from encodable data and a salt.
init(from decoder: any Decoder) throws
init(unsafeTopic: String)
Initialize a topic with an unchecked string.
var description: String { get }
func encode(to encoder: any Encoder) throws