pub struct Tst {
pub year: u16,
pub month: u8,
pub day: u8,
pub hour: u8,
pub minute: u8,
pub second: u8,
pub dst: bool,
}
Expand description
A point in time as reported by the meter
year
is normalized from 2 digits by mapping it to 1969..=2068 range
Fields§
§year: u16
Year, normalized from 2 digits by mapping it to 1969..=2068 range
month: u8
§day: u8
§hour: u8
§minute: u8
§second: u8
§dst: bool
True if Daylight Saving Time is active
Implementations§
Trait Implementations§
Source§impl Ord for Tst
impl Ord for Tst
Source§impl PartialOrd for Tst
impl PartialOrd for Tst
impl Copy for Tst
impl Eq for Tst
impl StructuralPartialEq for Tst
Auto Trait Implementations§
impl Freeze for Tst
impl RefUnwindSafe for Tst
impl Send for Tst
impl Sync for Tst
impl Unpin for Tst
impl UnwindSafe for Tst
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