pub enum Time {
Utc(UtcTimeAsn1),
Generalized(GeneralizedTimeAsn1),
}
Variants§
Utc(UtcTimeAsn1)
Generalized(GeneralizedTimeAsn1)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Time
impl<'de> Deserialize<'de> for Time
Source§fn deserialize<D>(
deserializer: D,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Date<GeneralizedTimeRepr>> for Time
impl From<Date<GeneralizedTimeRepr>> for Time
Source§fn from(time: GeneralizedTime) -> Self
fn from(time: GeneralizedTime) -> Self
Converts to this type from the input type.
Source§impl From<GeneralizedTimeAsn1> for Time
impl From<GeneralizedTimeAsn1> for Time
Source§fn from(time: GeneralizedTimeAsn1) -> Self
fn from(time: GeneralizedTimeAsn1) -> Self
Converts to this type from the input type.
Source§impl From<UtcTimeAsn1> for Time
impl From<UtcTimeAsn1> for Time
Source§fn from(time: UtcTimeAsn1) -> Self
fn from(time: UtcTimeAsn1) -> Self
Converts to this type from the input type.
Source§impl Serialize for Time
impl Serialize for Time
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Time
impl StructuralPartialEq for Time
Auto Trait Implementations§
impl Freeze for Time
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnwindSafe for Time
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