[][src]Struct web_push::SubscriptionInfo

pub struct SubscriptionInfo {
    pub endpoint: String,
    pub keys: SubscriptionKeys,
}

Client info for sending the notification. Maps the values from browser's subscription info JSON data.

Fields

endpoint: String

The endpoint URI for sending the notification.

keys: SubscriptionKeys

The encryption key and secret for payload encryption.

Methods

impl SubscriptionInfo[src]

pub fn new<S>(endpoint: S, p256dh: S, auth: S) -> SubscriptionInfo where
    S: Into<String>, 
[src]

A constructor function to create a new SubscriptionInfo, if not using Serde's serialization.

Trait Implementations

impl Debug for SubscriptionInfo[src]

impl<'de> Deserialize<'de> for SubscriptionInfo[src]

impl Serialize for SubscriptionInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.