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: u16
Trait Implementations§
Source§impl From<DateTime> for NaiveDateTime
impl From<DateTime> for NaiveDateTime
Source§impl From<NaiveDateTime> for DateTime
impl From<NaiveDateTime> for DateTime
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)