pub enum EventTime {
Utc(DateTime<Utc>),
Local(DateTime<Local>),
}Variants§
Implementations§
Source§impl EventTime
impl EventTime
pub fn is_utc(&self) -> bool
pub fn format_as_string(&self, format: EventTimeFormat) -> String
Trait Implementations§
impl Copy for EventTime
Auto Trait Implementations§
impl Freeze for EventTime
impl RefUnwindSafe for EventTime
impl Send for EventTime
impl Sync for EventTime
impl Unpin for EventTime
impl UnsafeUnpin for EventTime
impl UnwindSafe for EventTime
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