Struct web_push::VapidSignature
source · pub struct VapidSignature {
pub auth_t: String,
pub auth_k: Vec<u8>,
}
Expand description
A struct representing a VAPID signature. Should be generated using the VapidSignatureBuilder.
Fields§
§auth_t: String
The signed JWT, base64 encoded
auth_k: Vec<u8>
The public key bytes
Trait Implementations§
source§impl Clone for VapidSignature
impl Clone for VapidSignature
source§fn clone(&self) -> VapidSignature
fn clone(&self) -> VapidSignature
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 VapidSignature
impl Debug for VapidSignature
source§impl Hash for VapidSignature
impl Hash for VapidSignature
source§impl Ord for VapidSignature
impl Ord for VapidSignature
source§fn cmp(&self, other: &VapidSignature) -> Ordering
fn cmp(&self, other: &VapidSignature) -> 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 VapidSignature
impl PartialEq for VapidSignature
source§fn eq(&self, other: &VapidSignature) -> bool
fn eq(&self, other: &VapidSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VapidSignature
impl PartialOrd for VapidSignature
source§fn partial_cmp(&self, other: &VapidSignature) -> Option<Ordering>
fn partial_cmp(&self, other: &VapidSignature) -> 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 moreimpl Eq for VapidSignature
impl StructuralEq for VapidSignature
impl StructuralPartialEq for VapidSignature
Auto Trait Implementations§
impl RefUnwindSafe for VapidSignature
impl Send for VapidSignature
impl Sync for VapidSignature
impl Unpin for VapidSignature
impl UnwindSafe for VapidSignature
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