pub struct PreciseShiftedDateTime<Y = SimpleYear> {
pub year: Year<Y>,
pub month: Month,
pub day: Day,
pub hour: Hour,
pub minute: Minute,
pub second: Second,
pub nanosecond: Nanosecond,
pub timeshift: Timeshift,
}Expand description
Date and with time shift information, with nanosecond precision
Fields§
§year: Year<Y>§month: Month§day: Day§hour: Hour§minute: Minute§second: Second§nanosecond: Nanosecond§timeshift: TimeshiftImplementations§
Trait Implementations§
Source§impl<Y: Clone> Clone for PreciseShiftedDateTime<Y>
impl<Y: Clone> Clone for PreciseShiftedDateTime<Y>
Source§fn clone(&self) -> PreciseShiftedDateTime<Y>
fn clone(&self) -> PreciseShiftedDateTime<Y>
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<Y: Debug> Debug for PreciseShiftedDateTime<Y>
impl<Y: Debug> Debug for PreciseShiftedDateTime<Y>
Source§impl Display for PreciseShiftedDateTime
impl Display for PreciseShiftedDateTime
Source§impl From<PreciseShiftedDateTime> for DateTime<FixedOffset>
Available on crate feature chrono only.
impl From<PreciseShiftedDateTime> for DateTime<FixedOffset>
Available on crate feature
chrono only.Source§fn from(val: PreciseShiftedDateTime) -> Self
fn from(val: PreciseShiftedDateTime) -> Self
Converts to this type from the input type.
Source§impl<Y: PartialEq> PartialEq for PreciseShiftedDateTime<Y>
impl<Y: PartialEq> PartialEq for PreciseShiftedDateTime<Y>
Source§impl<Y, Mo, D, H, Mi, S, N, T> TryFrom<(Y, Mo, D, H, Mi, S, N, T)> for PreciseShiftedDateTime
impl<Y, Mo, D, H, Mi, S, N, T> TryFrom<(Y, Mo, D, H, Mi, S, N, T)> for PreciseShiftedDateTime
Source§impl TryInto<DateTime<Utc>> for PreciseShiftedDateTime
Available on crate feature chrono only.
impl TryInto<DateTime<Utc>> for PreciseShiftedDateTime
Available on crate feature
chrono only.impl<Y: Copy> Copy for PreciseShiftedDateTime<Y>
impl<Y: Eq> Eq for PreciseShiftedDateTime<Y>
impl<Y> StructuralPartialEq for PreciseShiftedDateTime<Y>
Auto Trait Implementations§
impl<Y> Freeze for PreciseShiftedDateTime<Y>where
Y: Freeze,
impl<Y> RefUnwindSafe for PreciseShiftedDateTime<Y>where
Y: RefUnwindSafe,
impl<Y> Send for PreciseShiftedDateTime<Y>where
Y: Send,
impl<Y> Sync for PreciseShiftedDateTime<Y>where
Y: Sync,
impl<Y> Unpin for PreciseShiftedDateTime<Y>where
Y: Unpin,
impl<Y> UnwindSafe for PreciseShiftedDateTime<Y>where
Y: UnwindSafe,
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