Struct web_push::SubscriptionInfo
[−]
[src]
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]
S: Into<String>,
A constructor function to create a new SubscriptionInfo, if not using
Serde's serialization.