#[repr(transparent)]pub struct IsoDateTime(pub DateTime);Tuple Fields§
§0: DateTimeMethods from Deref<Target = DateTime>§
pub fn to_nanos(&self) -> u64
pub fn timestamp(&self) -> i64
pub fn timestamp_millis(&self) -> i64
pub fn timestamp_nanos(&self) -> Result<i64, Box<TypeError>>
pub fn try_date(&self) -> Result<Date, Box<TypeError>>
pub fn date(&self) -> Date
pub fn time(&self) -> Time
pub fn to_nanos_since_epoch_u128(&self) -> u128
pub fn year(&self) -> i32
pub fn month(&self) -> u32
pub fn day(&self) -> u32
pub fn hour(&self) -> u32
pub fn minute(&self) -> u32
pub fn second(&self) -> u32
pub fn nanosecond(&self) -> u32
pub fn add_duration(&self, dur: &Duration) -> Result<Self, Box<TypeError>>
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IsoDateTime
Source§impl Debug for IsoDateTime
impl Debug for IsoDateTime
Source§impl Deref for IsoDateTime
impl Deref for IsoDateTime
Source§impl<'de> Deserialize<'de> for IsoDateTime
impl<'de> Deserialize<'de> for IsoDateTime
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IsoDateTime
Source§impl From<DateTime> for IsoDateTime
impl From<DateTime> for IsoDateTime
Source§impl From<IsoDateTime> for DateTime
impl From<IsoDateTime> for DateTime
Source§fn from(value: IsoDateTime) -> Self
fn from(value: IsoDateTime) -> Self
Converts to this type from the input type.
Source§impl Hash for IsoDateTime
impl Hash for IsoDateTime
Source§impl PartialEq for IsoDateTime
impl PartialEq for IsoDateTime
Source§fn eq(&self, other: &IsoDateTime) -> bool
fn eq(&self, other: &IsoDateTime) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IsoDateTime
impl Serialize for IsoDateTime
impl StructuralPartialEq for IsoDateTime
Source§impl TryFromValue for IsoDateTime
impl TryFromValue for IsoDateTime
fn try_from_value(value: &Value) -> Result<Self, FromValueError>
fn from_value(value: &Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for IsoDateTime
impl RefUnwindSafe for IsoDateTime
impl Send for IsoDateTime
impl Sync for IsoDateTime
impl Unpin for IsoDateTime
impl UnsafeUnpin 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