Struct epoch_cli::DateTimeParts
source · [−]pub struct DateTimeParts {
pub year: i32,
pub month: u8,
pub day: u8,
pub hour: u8,
pub minute: u8,
pub second: u8,
pub millisecond: u32,
pub microsecond: u32,
pub nanosecond: u32,
}Expand description
The parts that make up a date/time.
Fields
year: i32month: u8day: u8hour: u8minute: u8second: u8millisecond: u32microsecond: u32nanosecond: u32Implementations
Trait Implementations
sourceimpl Debug for DateTimeParts
impl Debug for DateTimeParts
sourceimpl Default for DateTimeParts
impl Default for DateTimeParts
sourcefn default() -> DateTimeParts
fn default() -> DateTimeParts
Returns the “default value” for a type. Read more
sourceimpl TryFrom<DateTimeParts> for Epoch
impl TryFrom<DateTimeParts> for Epoch
sourcefn try_from(parts: DateTimeParts) -> Result<Self>
fn try_from(parts: DateTimeParts) -> Result<Self>
Attempts to convert DateTimeParts into an Epoch
type Error = EpochError
type Error = EpochError
The type returned in the event of a conversion error.
Auto Trait Implementations
impl RefUnwindSafe for DateTimeParts
impl Send for DateTimeParts
impl Sync for DateTimeParts
impl Unpin for DateTimeParts
impl UnwindSafe for DateTimeParts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more