#[non_exhaustive]pub struct DateTime {
pub date: Date,
pub time: Time,
}Expand description
A DOS compatible date and time.
Used by DirEntry time-related methods.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.date: DateA date part
time: TimeImplementations§
Trait Implementations§
Source§impl From<DateTime> for NaiveDateTime
Available on crate feature chrono only.
impl From<DateTime> for NaiveDateTime
Available on crate feature
chrono only.Source§impl From<NaiveDateTime> for DateTime
Available on crate feature chrono only.
impl From<NaiveDateTime> for DateTime
Available on crate feature
chrono only.Source§fn from(date_time: NaiveDateTime) -> Self
fn from(date_time: NaiveDateTime) -> Self
Converts to this type from the input type.
impl Copy for DateTime
impl Eq for DateTime
impl StructuralPartialEq for DateTime
Auto Trait Implementations§
impl Freeze for DateTime
impl RefUnwindSafe for DateTime
impl Send for DateTime
impl Sync for DateTime
impl Unpin for DateTime
impl UnwindSafe for DateTime
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