Struct tinkerforge::real_time_clock_bricklet::DateTime
source · pub struct DateTime {
pub year: u16,
pub month: u8,
pub day: u8,
pub hour: u8,
pub minute: u8,
pub second: u8,
pub centisecond: u8,
pub weekday: u8,
}
Fields§
§year: u16
§month: u8
§day: u8
§hour: u8
§minute: u8
§second: u8
§centisecond: u8
§weekday: u8
Trait Implementations§
source§impl FromByteSlice for DateTime
impl FromByteSlice for DateTime
source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
source§fn from_le_byte_slice(bytes: &[u8]) -> DateTime
fn from_le_byte_slice(bytes: &[u8]) -> DateTime
Deserialize the implementing type from a byte slice.
source§impl PartialEq for DateTime
impl PartialEq for DateTime
impl Copy for DateTime
impl Eq for DateTime
impl StructuralPartialEq for DateTime
Auto Trait Implementations§
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