Initializermochidev.swift-webpush 0.4.2WebPush
init(seconds:)
Initialize a duration with a number of seconds.
init(seconds: Int)
Initialize a duration with a number of seconds.
init(seconds: Int)
s7WebPush5VAPIDO13ConfigurationV8DurationV7secondsAGSi_tcfc
What are these?7S3B6
import WebPush
struct Duration
A duration in seconds used to express when VAPID tokens will expire.
enum VAPID
A set of types for Voluntary Application Server Identification, also known as VAPID.
struct Configuration
A configuration object specifying the contact information along with the keys that your application server identifies itself with.
@frozen struct Int
A signed integer value type.
init(from decoder: Decoder) throws
init(integerLiteral value: Int)
static func days(_ days: Int) -> VAPID.Configuration.Duration
Make a duration with a number of days.
static func hours(_ hours: Int) -> VAPID.Configuration.Duration
Make a duration with a number of hours.
static func minutes(_ minutes: Int) -> VAPID.Configuration.Duration
Make a duration with a number of minutes.
static func seconds(_ seconds: Int) -> VAPID.Configuration.Duration
Make a duration with a number of seconds.
let seconds: Int
The number of seconds represented by this duration.
static func + (lhs: Self, rhs: Self) -> VAPID.Configuration.Duration
static func - (lhs: Self, rhs: Self) -> VAPID.Configuration.Duration
static func < (lhs: Self, rhs: Self) -> Bool
func encode(to encoder: any Encoder) throws