Static Methodmochidev.swift-webpush 0.4.2WebPush
minutes(_:)
Make a duration with a number of minutes.
static func minutes(_ minutes: Int) -> VAPID.Configuration.Duration
Make a duration with a number of minutes.
static func minutes(_ minutes: Int) -> VAPID.Configuration.Duration
s7WebPush5VAPIDO13ConfigurationV8DurationV7minutesyAGSiFZ
What are these?1D7FQ
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)
init(seconds: Int)
Initialize a duration with a number of seconds.
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 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