pub struct DateFields {
pub year: i64,
pub month: u32,
pub day: u32,
pub weekday: u32,
pub hour: u32,
pub minute: u32,
pub second: u32,
}Expand description
The calendar fields of an instant (in UTC; a host shifts by its zone first).
Fields§
§year: i64§month: u321..12
day: u32§weekday: u320 = Sunday.
hour: u32§minute: u32§second: u32Trait Implementations§
Source§impl Clone for DateFields
impl Clone for DateFields
impl Copy for DateFields
Source§impl Debug for DateFields
impl Debug for DateFields
impl Eq for DateFields
Source§impl PartialEq for DateFields
impl PartialEq for DateFields
impl StructuralPartialEq for DateFields
Auto Trait Implementations§
impl Freeze for DateFields
impl RefUnwindSafe for DateFields
impl Send for DateFields
impl Sync for DateFields
impl Unpin for DateFields
impl UnsafeUnpin for DateFields
impl UnwindSafe for DateFields
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.