pub enum DateInit {
Millis(u64),
String(String),
}
Expand description
Initialize a Date
by constructing this enum.
let t1: Date = DateInit::Millis(1630611511000).into();
let t2: Date = DateInit::String("Thu, 02 Sep 2021 19:38:31 GMT".to_string()).into();
Variants§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for DateInit
impl Send for DateInit
impl Sync for DateInit
impl Unpin for DateInit
impl UnwindSafe for DateInit
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