pub struct DateTime {
pub seconds: u8,
pub minutes: u8,
pub hours: u8,
pub weekday: u8,
pub date: u8,
pub month: u8,
pub year: u16,
}Fields§
§seconds: u8§minutes: u8§hours: u8§weekday: u8§date: u8§month: u8§year: u16Trait 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(datetime: NaiveDateTime) -> Self
fn from(datetime: NaiveDateTime) -> Self
Converts to this type from the input type.
impl Copy 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 UnsafeUnpin 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