Struct autoendpoint::headers::vapid::VapidClaims
source · pub struct VapidClaims {
pub exp: u64,
pub aud: String,
pub sub: String,
}
Fields§
§exp: u64
§aud: String
§sub: String
Implementations§
source§impl VapidClaims
impl VapidClaims
pub fn default_exp() -> u64
Trait Implementations§
source§impl Clone for VapidClaims
impl Clone for VapidClaims
source§fn clone(&self) -> VapidClaims
fn clone(&self) -> VapidClaims
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 VapidClaims
impl Debug for VapidClaims
source§impl Default for VapidClaims
impl Default for VapidClaims
source§impl<'de> Deserialize<'de> for VapidClaims
impl<'de> Deserialize<'de> for VapidClaims
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 Display for VapidClaims
impl Display for VapidClaims
source§impl PartialEq for VapidClaims
impl PartialEq for VapidClaims
source§fn eq(&self, other: &VapidClaims) -> bool
fn eq(&self, other: &VapidClaims) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VapidClaims
impl Serialize for VapidClaims
source§impl TryFrom<VapidHeader> for VapidClaims
impl TryFrom<VapidHeader> for VapidClaims
§type Error = VapidError
type Error = VapidError
The type returned in the event of a conversion error.
impl Eq for VapidClaims
impl StructuralPartialEq for VapidClaims
Auto Trait Implementations§
impl Freeze for VapidClaims
impl RefUnwindSafe for VapidClaims
impl Send for VapidClaims
impl Sync for VapidClaims
impl Unpin for VapidClaims
impl UnwindSafe for VapidClaims
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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<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.§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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP