pub enum AbsoluteOrRelativeTime {
Absolute(DateTime<Utc>),
RelativeFuture(Duration),
RelativePast(Duration),
Now,
}
Expand description
Helper struct to parse from either an absolute ISO 8601 datetime, or some duration relative to now (e.g. +1h, -3d, etc.)
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for AbsoluteOrRelativeTime
impl Clone for AbsoluteOrRelativeTime
Source§fn clone(&self) -> AbsoluteOrRelativeTime
fn clone(&self) -> AbsoluteOrRelativeTime
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 AbsoluteOrRelativeTime
impl Debug for AbsoluteOrRelativeTime
Auto Trait Implementations§
impl Freeze for AbsoluteOrRelativeTime
impl RefUnwindSafe for AbsoluteOrRelativeTime
impl Send for AbsoluteOrRelativeTime
impl Sync for AbsoluteOrRelativeTime
impl Unpin for AbsoluteOrRelativeTime
impl UnwindSafe for AbsoluteOrRelativeTime
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