pub enum Date {
System(SystemTime),
Chrono(ChronoTime),
}
Expand description
Time variants to serialize
Variants§
Trait Implementations§
Source§impl From<&DateTime<Utc>> for Date
impl From<&DateTime<Utc>> for Date
Source§fn from(value: &ChronoTime) -> Self
fn from(value: &ChronoTime) -> Self
Converts to this type from the input type.
Source§impl From<&SystemTime> for Date
impl From<&SystemTime> for Date
Source§fn from(value: &SystemTime) -> Self
fn from(value: &SystemTime) -> Self
Converts to this type from the input type.
Source§impl From<DateTime<Utc>> for Date
impl From<DateTime<Utc>> for Date
Source§fn from(value: ChronoTime) -> Self
fn from(value: ChronoTime) -> Self
Converts to this type from the input type.
Source§impl From<SystemTime> for Date
impl From<SystemTime> for Date
Source§fn from(value: SystemTime) -> Self
fn from(value: SystemTime) -> Self
Converts to this type from the input type.
Source§impl Ord for Date
impl Ord for Date
Source§impl PartialEq<SystemTime> for Date
impl PartialEq<SystemTime> for Date
Source§impl PartialOrd<DateTime<Utc>> for Date
impl PartialOrd<DateTime<Utc>> for Date
Source§impl PartialOrd<SystemTime> for Date
impl PartialOrd<SystemTime> for Date
Source§impl PartialOrd for Date
impl PartialOrd for Date
impl Copy for Date
impl Eq for Date
Auto Trait Implementations§
impl Freeze for Date
impl RefUnwindSafe for Date
impl Send for Date
impl Sync for Date
impl Unpin for Date
impl UnwindSafe for Date
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