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§
Source§impl Clone for SecondsSinceEpoch
impl Clone for SecondsSinceEpoch
Source§fn clone(&self) -> SecondsSinceEpoch
fn clone(&self) -> SecondsSinceEpoch
Returns a duplicate 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 SecondsSinceEpoch
impl Debug for SecondsSinceEpoch
Source§impl<'de> Deserialize<'de> for SecondsSinceEpoch
impl<'de> Deserialize<'de> for SecondsSinceEpoch
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 PartialEq for SecondsSinceEpoch
impl PartialEq for SecondsSinceEpoch
Source§impl Serialize for SecondsSinceEpoch
impl Serialize for SecondsSinceEpoch
impl Eq for SecondsSinceEpoch
impl StructuralPartialEq for SecondsSinceEpoch
Auto Trait Implementations§
impl Freeze for SecondsSinceEpoch
impl RefUnwindSafe for SecondsSinceEpoch
impl Send for SecondsSinceEpoch
impl Sync for SecondsSinceEpoch
impl Unpin for SecondsSinceEpoch
impl UnwindSafe for SecondsSinceEpoch
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