Type Alias rasn::types::GeneralizedTime

source ·
pub type GeneralizedTime = DateTime<FixedOffset>;
Expand description

The GeneralizedTime type.

Aliased Type§

struct GeneralizedTime { /* private fields */ }

Trait Implementations§

source§

impl AsnType for GeneralizedTime

source§

const TAG: Tag = Tag::GENERALIZED_TIME

The associated tag for the type. Read more
source§

const TAG_TREE: TagTree = _

The root of this type’s tree of tag’s if it a CHOICE type, otherwise its Leaf that points Self::TAG.
source§

const CONSTRAINTS: Constraints<'static> = Constraints::NONE

source§

impl Decode for GeneralizedTime

source§

fn decode_with_tag_and_constraints<D: Decoder>( decoder: &mut D, tag: Tag, _: Constraints<'_> ) -> Result<Self, D::Error>

source§

fn decode<D: Decoder>(decoder: &mut D) -> Result<Self, D::Error>

Decode this value from a given ASN.1 decoder. Read more
source§

fn decode_with_tag<D: Decoder>( decoder: &mut D, tag: Tag ) -> Result<Self, D::Error>

Decode this value implicitly tagged with tag from a given ASN.1 decoder. Read more
source§

fn decode_with_constraints<D: Decoder>( decoder: &mut D, constraints: Constraints<'_> ) -> Result<Self, D::Error>

source§

impl Encode for GeneralizedTime

source§

fn encode_with_tag_and_constraints<E: Encoder>( &self, encoder: &mut E, tag: Tag, _: Constraints<'_> ) -> Result<(), E::Error>

source§

fn encode<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>

Encodes self’s data into the given Encoder. Read more
source§

fn encode_with_tag<E: Encoder>( &self, encoder: &mut E, tag: Tag ) -> Result<(), E::Error>

Encode this value with tag into the given Encoder. Read more
source§

fn encode_with_constraints<E: Encoder>( &self, encoder: &mut E, constraints: Constraints<'_> ) -> Result<(), E::Error>