Struct attenuable_jwt::SecondsSinceEpoch
source · [−]pub struct SecondsSinceEpoch(pub u64);Expand description
Newtype wrapper for the number of seconds elapsed since the unix epoch.
Used in the exp and nbf claims of JWTs.
Tuple Fields
0: u64Trait Implementations
sourceimpl Clone for SecondsSinceEpoch
impl Clone for SecondsSinceEpoch
sourcefn clone(&self) -> SecondsSinceEpoch
fn clone(&self) -> SecondsSinceEpoch
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SecondsSinceEpoch
impl Debug for SecondsSinceEpoch
sourceimpl<'de> Deserialize<'de> for SecondsSinceEpoch
impl<'de> Deserialize<'de> for SecondsSinceEpoch
sourcefn 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
sourceimpl PartialEq<SecondsSinceEpoch> for SecondsSinceEpoch
impl PartialEq<SecondsSinceEpoch> for SecondsSinceEpoch
sourcefn eq(&self, other: &SecondsSinceEpoch) -> bool
fn eq(&self, other: &SecondsSinceEpoch) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SecondsSinceEpoch) -> bool
fn ne(&self, other: &SecondsSinceEpoch) -> bool
This method tests for !=.
sourceimpl Serialize for SecondsSinceEpoch
impl Serialize for SecondsSinceEpoch
impl StructuralPartialEq for SecondsSinceEpoch
Auto Trait Implementations
impl RefUnwindSafe for SecondsSinceEpoch
impl Send for SecondsSinceEpoch
impl Sync for SecondsSinceEpoch
impl Unpin for SecondsSinceEpoch
impl UnwindSafe for SecondsSinceEpoch
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more