pub enum Validity {
Relative(u8),
Absolute(Timestamp),
Enhanced([u8; 7]),
}Expand description
TP-VP (23.040 §9.2.3.12).
Variants§
Relative(u8)
Relative format octet; see relative_minutes / relative_from_minutes.
Absolute(Timestamp)
Enhanced([u8; 7])
Enhanced format, raw 7 octets (bits 2–0 of the first octet give the sub-format).
Implementations§
Trait Implementations§
impl Copy for Validity
Source§impl<'de> Deserialize<'de> for Validity
impl<'de> Deserialize<'de> for Validity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Validity
impl StructuralPartialEq for Validity
Auto Trait Implementations§
impl Forget for Validity
impl Freeze for Validity
impl RefUnwindSafe for Validity
impl Send for Validity
impl Sync for Validity
impl Unpin for Validity
impl UnsafeUnpin for Validity
impl UnwindSafe for Validity
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