pub struct Parts {
pub years: u16,
pub months: u8,
pub days: u8,
pub hours: u8,
pub minutes: u8,
pub seconds: u8,
pub nanos: u32,
}Expand description
The individual date and time portions of a timestamp.
Values in parts are represented exactly as they would be when formatted into a timestamp. So months and days are both one-based instead of zero-based values.
Fields§
§years: u16The zero-based year.
months: u8The one-based month.
days: u8The one-based day.
hours: u8The zero-based hour of the day.
minutes: u8The zero-based minute of the hour.
seconds: u8The zero-based second of the minute.
nanos: u32The zero-based subsecond precision.
Trait Implementations§
Source§impl Ord for Parts
impl Ord for Parts
Source§impl PartialOrd for Parts
impl PartialOrd for Parts
impl Copy for Parts
impl Eq for Parts
impl StructuralPartialEq for Parts
Auto Trait Implementations§
impl Freeze for Parts
impl RefUnwindSafe for Parts
impl Send for Parts
impl Sync for Parts
impl Unpin for Parts
impl UnwindSafe for Parts
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