pub struct WebPushBuilder { /* private fields */ }
Expand description

Reusable builder for HTTP push requests

Implementations

Creates a new WebPushBuilder factory for HTTP push requests.

Requests generated using this factory will have a valid duration of 12 hours and no VAPID signature.

Most providers accepting HTTP push requests will require a valid VAPID signature, so you will most likely want to add one using WebPushBuilder::with_vapid.

Sets the valid duration for generated HTTP push requests.

Sets the VAPID signature header for generated HTTP push requests.

Generates a new HTTP push request according to the specifications of the builder.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.