#[repr(transparent)]pub struct IsoDateTime(pub DateTime);Tuple Fields§
§0: DateTimeMethods from Deref<Target = DateTime>§
pub fn to_order(&self) -> u64
pub fn to_nanos(&self) -> i64
pub fn to_epoch_secs(&self) -> i64
pub fn to_epoch_millis(&self) -> i64
pub fn try_date(&self) -> Result<Date, Box<TypeError>>
pub fn date(&self) -> Date
pub fn time(&self) -> Time
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>>
pub fn saturating_add(self, rhs: Duration) -> DateTime
pub fn saturating_sub(self, rhs: Duration) -> DateTime
pub fn checked_add(self, rhs: Duration) -> Option<DateTime>
pub fn checked_sub(self, rhs: Duration) -> Option<DateTime>
pub fn saturating_duration_since(self, earlier: DateTime) -> Duration
pub fn is_epoch(&self) -> bool
pub fn to_millis(&self) -> i64
pub fn to_micros(&self) -> i64
pub fn to_secs(&self) -> i64
pub fn saturating_add_millis(self, millis: u64) -> DateTime
pub fn saturating_sub_millis(self, millis: u64) -> DateTime
pub fn floor_to_millis(self, millis: u64) -> DateTime
Trait Implementations§
Source§impl Clone for IsoDateTime
impl Clone for IsoDateTime
impl 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§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§
impl<T> Allocation for T
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