pub struct StoredPushSubscription {
pub subscription: PushSubscription,
pub expected_code: String,
}Expand description
A push subscription as the backend stores it.
subscription is the object as the client sees it, including the
private url and keys, which PushSubscription/get strips.
subscription.verification_code is the code the client echoed back, if
any. expected_code is the code the server sent in the
PushVerification object.
The Debug impl redacts expected_code.
Fields§
§subscription: PushSubscriptionThe subscription, including the private url and keys.
expected_code: StringThe verification code the server sent to the push endpoint.
Trait Implementations§
Source§impl Clone for StoredPushSubscription
impl Clone for StoredPushSubscription
Source§impl Debug for StoredPushSubscription
impl Debug for StoredPushSubscription
impl Eq for StoredPushSubscription
Source§impl PartialEq for StoredPushSubscription
impl PartialEq for StoredPushSubscription
impl StructuralPartialEq for StoredPushSubscription
Auto Trait Implementations§
impl Freeze for StoredPushSubscription
impl RefUnwindSafe for StoredPushSubscription
impl Send for StoredPushSubscription
impl Sync for StoredPushSubscription
impl Unpin for StoredPushSubscription
impl UnsafeUnpin for StoredPushSubscription
impl UnwindSafe for StoredPushSubscription
Blanket Implementations§
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