pub struct Interval {
    pub months: i32,
    pub days: i32,
    pub micros: i64,
}Expand description
Represents a time interval or duration.
This structure can represent complex time intervals with separate components for months, days, and microseconds, allowing for precise duration calculations that account for calendar irregularities. Standard JSON has no native interval/duration type.
Fields§
§months: i32Number of months in the interval
days: i32Number of days in the interval
micros: i64Number of microseconds in the interval
Trait Implementations§
Source§impl Ord for Interval
 
impl Ord for Interval
Source§impl PartialOrd for Interval
 
impl PartialOrd for Interval
impl Eq for Interval
impl StructuralPartialEq for Interval
Auto Trait Implementations§
impl Freeze for Interval
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin for Interval
impl UnwindSafe for Interval
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.