pub struct IsoDatetime {
pub datetime: PrimitiveDateTime,
}Fields§
§datetime: PrimitiveDateTimeImplementations§
Source§impl IsoDatetime
impl IsoDatetime
pub fn now() -> Self
pub fn from_offset_date_time(datetime: OffsetDateTime) -> Self
pub fn from_unix_timestamp(value: i64) -> Result<Self>
pub fn unix_timestamp(&self) -> i64
pub fn from_primitive_date_time(datetime: PrimitiveDateTime) -> Self
pub fn datetime(&self) -> OffsetDateTime
Trait Implementations§
Source§impl Clone for IsoDatetime
impl Clone for IsoDatetime
Source§fn clone(&self) -> IsoDatetime
fn clone(&self) -> IsoDatetime
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 IsoDatetime
impl Debug for IsoDatetime
Source§impl<'de> Deserialize<'de> for IsoDatetime
impl<'de> Deserialize<'de> for IsoDatetime
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 IsoDatetime
impl PartialEq for IsoDatetime
Source§impl PartialOrd for IsoDatetime
impl PartialOrd for IsoDatetime
Source§impl Serialize for IsoDatetime
impl Serialize for IsoDatetime
impl Copy for IsoDatetime
impl StructuralPartialEq for IsoDatetime
Auto Trait Implementations§
impl Freeze for IsoDatetime
impl RefUnwindSafe for IsoDatetime
impl Send for IsoDatetime
impl Sync for IsoDatetime
impl Unpin for IsoDatetime
impl UnwindSafe for IsoDatetime
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