Enum picky_asn1_x509::validity::Time
source · 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 PartialEq<Time> for Time
impl PartialEq<Time> for Time
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 StructuralEq for Time
impl StructuralPartialEq for Time
Auto Trait Implementations§
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