pub enum Asn1Value {
Constructed(Vec<Asn1>),
Encapsulated {
unused_bits: Option<u8>,
items: Vec<Asn1>,
},
Bool(bool),
Int,
Null,
Oid(String),
Text(String),
Time {
text: String,
iso: Option<String>,
},
BitString {
unused_bits: u8,
},
Bytes,
}Variants§
Constructed(Vec<Asn1>)
A constructed element (SEQUENCE, SET, [0], …).
Encapsulated
A BIT STRING or OCTET STRING whose content is itself DER.
unused_bits is Some(0) for a BIT STRING.
Bool(bool)
Int
INTEGER or ENUMERATED; the value is raw (big-endian two’s complement).
Null
Oid(String)
OBJECT IDENTIFIER or RELATIVE-OID in dotted form.
Text(String)
A character string, decoded per its type.
Time
UTCTime or GeneralizedTime; iso is set when the value is well formed.
BitString
A BIT STRING that is not itself DER; the bits are raw[1..].
Bytes
Anything else; the content is raw.
Trait Implementations§
impl StructuralPartialEq for Asn1Value
Auto Trait Implementations§
impl Forget for Asn1Value
impl Freeze for Asn1Value
impl Move for Asn1Value
impl RefUnwindSafe for Asn1Value
impl Send for Asn1Value
impl Sync for Asn1Value
impl Unpin for Asn1Value
impl UnsafeUnpin for Asn1Value
impl UnwindSafe for Asn1Value
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