[−][src]Struct web_push::SubscriptionInfo
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.
Trait Implementations
impl Debug for SubscriptionInfo
[src]
impl<'de> Deserialize<'de> for SubscriptionInfo
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for SubscriptionInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for SubscriptionInfo
impl Send for SubscriptionInfo
impl Sync for SubscriptionInfo
impl Unpin for SubscriptionInfo
impl UnwindSafe for SubscriptionInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,