Struct web_push::SubscriptionKeys
source · pub struct SubscriptionKeys {
pub p256dh: String,
pub auth: String,
}
Expand description
Encryption keys from the client.
Fields§
§p256dh: String
The public key. Base64 encoded.
auth: String
Authentication secret. Base64 encoded.
Trait Implementations§
source§impl Clone for SubscriptionKeys
impl Clone for SubscriptionKeys
source§fn clone(&self) -> SubscriptionKeys
fn clone(&self) -> SubscriptionKeys
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SubscriptionKeys
impl Debug for SubscriptionKeys
source§impl Default for SubscriptionKeys
impl Default for SubscriptionKeys
source§fn default() -> SubscriptionKeys
fn default() -> SubscriptionKeys
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SubscriptionKeys
impl<'de> Deserialize<'de> for SubscriptionKeys
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for SubscriptionKeys
impl Hash for SubscriptionKeys
source§impl Ord for SubscriptionKeys
impl Ord for SubscriptionKeys
source§fn cmp(&self, other: &SubscriptionKeys) -> Ordering
fn cmp(&self, other: &SubscriptionKeys) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SubscriptionKeys
impl PartialEq for SubscriptionKeys
source§fn eq(&self, other: &SubscriptionKeys) -> bool
fn eq(&self, other: &SubscriptionKeys) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SubscriptionKeys
impl PartialOrd for SubscriptionKeys
source§fn partial_cmp(&self, other: &SubscriptionKeys) -> Option<Ordering>
fn partial_cmp(&self, other: &SubscriptionKeys) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for SubscriptionKeys
impl Serialize for SubscriptionKeys
impl Eq for SubscriptionKeys
impl StructuralEq for SubscriptionKeys
impl StructuralPartialEq for SubscriptionKeys
Auto Trait Implementations§
impl RefUnwindSafe for SubscriptionKeys
impl Send for SubscriptionKeys
impl Sync for SubscriptionKeys
impl Unpin for SubscriptionKeys
impl UnwindSafe for SubscriptionKeys
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