pub struct DateTime(/* private fields */);
Expand description
Internal UTC DateTime with second resolution
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DateTime
impl<'de> Deserialize<'de> for DateTime
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 Encode for DateTime
impl Encode for DateTime
Source§impl From<NaiveDateTime> for DateTime
impl From<NaiveDateTime> for DateTime
Source§fn from(s: NaiveDateTime) -> Self
fn from(s: NaiveDateTime) -> Self
Converts to this type from the input type.
Source§impl From<SystemTime> for DateTime
impl From<SystemTime> for DateTime
Source§fn from(s: SystemTime) -> Self
fn from(s: SystemTime) -> Self
Converts to this type from the input type.
Source§impl Into<SystemTime> for DateTime
impl Into<SystemTime> for DateTime
Source§fn into(self) -> SystemTime
fn into(self) -> SystemTime
Converts this type into the (usually inferred) input type.
Source§impl Parse for DateTime
impl Parse for DateTime
impl Copy for DateTime
impl StructuralPartialEq for DateTime
Auto Trait Implementations§
impl Freeze for DateTime
impl RefUnwindSafe for DateTime
impl Send for DateTime
impl Sync for DateTime
impl Unpin for DateTime
impl UnwindSafe for DateTime
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