pub enum AsnValue {
Show 15 variants
Boolean(bool),
Integer(i64),
BigInteger(Vec<u8>),
BitString(Vec<u8>, u8),
OctetString(Vec<u8>),
Null,
Oid(Vec<u32>),
Utf8String(String),
PrintableString(String),
Ia5String(String),
UtcTime(String),
Sequence(Vec<AsnValue>),
Set(Vec<AsnValue>),
Enumerated(i64),
ContextSpecific(u8, Vec<u8>),
}Expand description
ASN.1 value
Variants§
Boolean(bool)
BOOLEAN
Integer(i64)
INTEGER (fits in i64)
BigInteger(Vec<u8>)
INTEGER (arbitrary precision, big-endian two’s complement)
BitString(Vec<u8>, u8)
BIT STRING (data bytes, unused bits in last byte)
OctetString(Vec<u8>)
OCTET STRING
Null
NULL
Oid(Vec<u32>)
OBJECT IDENTIFIER (arc components)
Utf8String(String)
UTF8String
PrintableString(String)
PrintableString
Ia5String(String)
IA5String
UtcTime(String)
UTCTime (raw string)
Sequence(Vec<AsnValue>)
SEQUENCE (ordered list)
Set(Vec<AsnValue>)
SET (unordered collection)
Enumerated(i64)
ENUMERATED
ContextSpecific(u8, Vec<u8>)
Context-specific tagged value (tag number, raw bytes)
Trait Implementations§
impl Eq for AsnValue
impl StructuralPartialEq for AsnValue
Auto Trait Implementations§
impl Freeze for AsnValue
impl RefUnwindSafe for AsnValue
impl Send for AsnValue
impl Sync for AsnValue
impl Unpin for AsnValue
impl UnwindSafe for AsnValue
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)