pub enum DtmValue {
Instant(OffsetDateTime),
Period(DvgwPeriod),
Hours(i8),
}Expand description
A decoded DTM value.
Variants§
Instant(OffsetDateTime)
A point in time, from format 102 or 203.
Period(DvgwPeriod)
A period, from format 719.
Hours(i8)
A whole number of hours, from format 805.
Implementations§
Source§impl DtmValue
impl DtmValue
Sourcepub fn as_instant(self) -> Option<OffsetDateTime>
pub fn as_instant(self) -> Option<OffsetDateTime>
The instant, when this value is one.
Sourcepub fn as_period(self) -> Option<DvgwPeriod>
pub fn as_period(self) -> Option<DvgwPeriod>
The period, when this value is one.
Trait Implementations§
impl Copy for DtmValue
impl Eq for DtmValue
impl StructuralPartialEq for DtmValue
Auto Trait Implementations§
impl Freeze for DtmValue
impl RefUnwindSafe for DtmValue
impl Send for DtmValue
impl Sync for DtmValue
impl Unpin for DtmValue
impl UnsafeUnpin for DtmValue
impl UnwindSafe for DtmValue
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