pub struct DateTime {
pub year: u16,
pub month: u8,
pub day: u8,
pub hour: u8,
pub minute: u8,
pub second: u8,
}Expand description
A calendar date and time as reported by a device (no timezone).
Fields§
§year: u16Year (e.g. 2026).
month: u8Month, 1-12.
day: u8Day, 1-31.
hour: u8Hour, 0-23.
minute: u8Minute, 0-59.
second: u8Second, 0-59.
Trait Implementations§
impl Copy for DateTime
impl Eq for DateTime
Source§impl From<DateTime> for DateTime
impl From<DateTime> for DateTime
Source§fn from(d: PtpDateTime) -> Self
fn from(d: PtpDateTime) -> Self
Converts to this type from the input type.
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 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