pub struct NewSubscription<'a> {
pub endpoint: &'a str,
pub p256dh: &'a str,
pub auth: &'a str,
pub device_label: Option<&'a str>,
pub expires_at: Option<i64>,
}Expand description
A subscription as the browser sent it (PushSubscription.toJSON()).
Fields§
§endpoint: &'a str§p256dh: &'a str§auth: &'a str§device_label: Option<&'a str>What Settings lists it as; the endpoint’s host name when absent.
expires_at: Option<i64>expirationTime, in seconds since the epoch.
Trait Implementations§
Source§impl<'a> Clone for NewSubscription<'a>
impl<'a> Clone for NewSubscription<'a>
Auto Trait Implementations§
impl<'a> Freeze for NewSubscription<'a>
impl<'a> RefUnwindSafe for NewSubscription<'a>
impl<'a> Send for NewSubscription<'a>
impl<'a> Sync for NewSubscription<'a>
impl<'a> Unpin for NewSubscription<'a>
impl<'a> UnsafeUnpin for NewSubscription<'a>
impl<'a> UnwindSafe for NewSubscription<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more