pub struct NumericDate(Duration);Expand description
RFC 7519 seconds since the Unix epoch with subsecond precision.
Both encodings are JSON numbers. Whole seconds serialize through u64 and
fractional values serialize through f64.
Tuple Fields§
§0: DurationTrait Implementations§
Source§impl Clone for NumericDate
impl Clone for NumericDate
Source§fn clone(&self) -> NumericDate
fn clone(&self) -> NumericDate
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 NumericDate
impl Debug for NumericDate
Source§impl<'de> Deserialize<'de> for NumericDate
impl<'de> Deserialize<'de> for NumericDate
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 From<Duration> for NumericDate
impl From<Duration> for NumericDate
Source§impl From<u64> for NumericDate
impl From<u64> for NumericDate
Source§impl Ord for NumericDate
impl Ord for NumericDate
Source§fn cmp(&self, other: &NumericDate) -> Ordering
fn cmp(&self, other: &NumericDate) -> 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 NumericDate
impl PartialEq for NumericDate
Source§impl PartialOrd for NumericDate
impl PartialOrd for NumericDate
Source§impl Serialize for NumericDate
impl Serialize for NumericDate
impl Copy for NumericDate
impl Eq for NumericDate
impl StructuralPartialEq for NumericDate
Auto Trait Implementations§
impl Freeze for NumericDate
impl RefUnwindSafe for NumericDate
impl Send for NumericDate
impl Sync for NumericDate
impl Unpin for NumericDate
impl UnsafeUnpin for NumericDate
impl UnwindSafe for NumericDate
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