pub struct VapidKeys {
pub public_key: String,
pub private_key: String,
}Expand description
A VAPID key pair, URL-safe base64 without padding.
Fields§
§public_key: StringThe public key (65 bytes, uncompressed point): VAPID_PUBLIC_KEY, given to browsers.
private_key: StringThe private key (32 bytes): VAPID_PRIVATE_KEY, a secret.
Implementations§
Trait Implementations§
impl Eq for VapidKeys
impl StructuralPartialEq for VapidKeys
Auto Trait Implementations§
impl Freeze for VapidKeys
impl RefUnwindSafe for VapidKeys
impl Send for VapidKeys
impl Sync for VapidKeys
impl Unpin for VapidKeys
impl UnsafeUnpin for VapidKeys
impl UnwindSafe for VapidKeys
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.