pub enum TimeReference {
Absolute(String),
Named(NamedTime),
Relative(RelativeTime),
}Variants§
Absolute(String)
Absolute time: @“2024-01-15 09:30”
Named(NamedTime)
Named time: @today, @yesterday
Relative(RelativeTime)
Relative time: @“1 week ago”
Trait Implementations§
Source§impl Clone for TimeReference
impl Clone for TimeReference
Source§fn clone(&self) -> TimeReference
fn clone(&self) -> TimeReference
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 TimeReference
impl Debug for TimeReference
Source§impl<'de> Deserialize<'de> for TimeReference
impl<'de> Deserialize<'de> for TimeReference
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 TimeReference
impl PartialEq for TimeReference
Source§impl Serialize for TimeReference
impl Serialize for TimeReference
impl StructuralPartialEq for TimeReference
Auto Trait Implementations§
impl Freeze for TimeReference
impl RefUnwindSafe for TimeReference
impl Send for TimeReference
impl Sync for TimeReference
impl Unpin for TimeReference
impl UnsafeUnpin for TimeReference
impl UnwindSafe for TimeReference
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