pub enum DerElement {
Show 13 variants
Boolean(bool),
Integer(Vec<u8>),
BitString(Vec<u8>, u8),
OctetString(Vec<u8>),
Null,
ObjectIdentifier(Vec<u64>),
Utf8String(String),
PrintableString(String),
UtcTime(String),
GeneralizedTime(String),
Sequence(Vec<DerElement>),
Set(Vec<DerElement>),
ContextSpecific(u8, Box<DerElement>, bool),
}Expand description
Lightweight ASN.1 DER encoder for X.509 certificates and PKCS#7 SignedData.
Variants§
Boolean(bool)
Integer(Vec<u8>)
BitString(Vec<u8>, u8)
OctetString(Vec<u8>)
Null
ObjectIdentifier(Vec<u64>)
Utf8String(String)
PrintableString(String)
UtcTime(String)
GeneralizedTime(String)
Sequence(Vec<DerElement>)
Set(Vec<DerElement>)
ContextSpecific(u8, Box<DerElement>, bool)
Implementations§
Source§impl DerElement
impl DerElement
Trait Implementations§
Source§impl Clone for DerElement
impl Clone for DerElement
Source§fn clone(&self) -> DerElement
fn clone(&self) -> DerElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DerElement
impl Debug for DerElement
impl Eq for DerElement
Source§impl PartialEq for DerElement
impl PartialEq for DerElement
impl StructuralPartialEq for DerElement
Auto Trait Implementations§
impl Freeze for DerElement
impl RefUnwindSafe for DerElement
impl Send for DerElement
impl Sync for DerElement
impl Unpin for DerElement
impl UnsafeUnpin for DerElement
impl UnwindSafe for DerElement
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