Struct der::asn1::Any [−][src]
pub struct Any<'a> { /* fields omitted */ }
Expand description
ASN.1 ANY
: represents any explicitly tagged ASN.1 value.
Technically ANY
hasn’t been a recommended part of ASN.1 since the X.209
revision from 1988. It was deprecated and replaced by Information Object
Classes in X.680 in 1994, and X.690 no longer refers to it whatsoever.
Nevertheless, this crate defines an Any
type as it remains a familiar
and useful concept which is still extensively used in things like
PKI-related RFCs.
Implementations
Attempt to decode an ASN.1 BIT STRING
.
Attempt to decode an ASN.1 CONTEXT-SPECIFIC
field.
Attempt to decode an ASN.1 GeneralizedTime
.
Attempt to decode an ASN.1 IA5String
.
Attempt to decode an ASN.1 OCTET STRING
.
This is supported on crate feature oid
only.
oid
only.Attempt to decode an ASN.1 OBJECT IDENTIFIER
.
Attempt to decode an ASN.1 OPTIONAL
value.
Attempt to decode an ASN.1 PrintableString
.
Attempt to decode this value an ASN.1 SEQUENCE
, creating a new
nested Decoder
and calling the provided argument with it.
Attempt to decode an ASN.1 UTF8String
.
Trait Implementations
Is the provided Tag
decodable as a variant of this CHOICE
?
Compute the length of this value in bytes when encoded as ASN.1 DER.
Encode this value as ASN.1 DER using the provided Encoder
.
Encode this value to the provided byte slice, returning a sub-slice containing the encoded message. Read more
alloc
only.Encode this message as ASN.1 DER, appending it to the provided byte vector. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for Any<'a>
impl<'a> UnwindSafe for Any<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self