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