Enum der_parser::DerObjectContent [−][src]
pub enum DerObjectContent<'a> {
Boolean(bool),
Integer(&'a [u8]),
BitString(u8, BitStringObject<'a>),
OctetString(&'a [u8]),
Null,
Enum(u64),
OID(Oid),
NumericString(&'a [u8]),
PrintableString(&'a [u8]),
IA5String(&'a [u8]),
UTF8String(&'a [u8]),
T61String(&'a [u8]),
BmpString(&'a [u8]),
Sequence(Vec<DerObject<'a>>),
Set(Vec<DerObject<'a>>),
UTCTime(&'a [u8]),
GeneralizedTime(&'a [u8]),
GeneralString(&'a [u8]),
ContextSpecific(u8, Option<Box<DerObject<'a>>>),
Unknown(&'a [u8]),
}Variants
Boolean(bool)Integer(&'a [u8])BitString(u8, BitStringObject<'a>)OctetString(&'a [u8])NullEnum(u64)OID(Oid)NumericString(&'a [u8])PrintableString(&'a [u8])IA5String(&'a [u8])UTF8String(&'a [u8])T61String(&'a [u8])BmpString(&'a [u8])Sequence(Vec<DerObject<'a>>)Set(Vec<DerObject<'a>>)UTCTime(&'a [u8])GeneralizedTime(&'a [u8])GeneralString(&'a [u8])ContextSpecific(u8, Option<Box<DerObject<'a>>>)Unknown(&'a [u8])
Methods
impl<'a> DerObjectContent<'a>[src]
impl<'a> DerObjectContent<'a>pub fn as_u64(&self) -> Result<u64, DerError>[src]
pub fn as_u64(&self) -> Result<u64, DerError>pub fn as_u32(&self) -> Result<u32, DerError>[src]
pub fn as_u32(&self) -> Result<u32, DerError>pub fn as_bool(&self) -> Result<bool, DerError>[src]
pub fn as_bool(&self) -> Result<bool, DerError>pub fn as_oid(&self) -> Result<&Oid, DerError>[src]
pub fn as_oid(&self) -> Result<&Oid, DerError>pub fn as_oid_val(&self) -> Result<Oid, DerError>[src]
pub fn as_oid_val(&self) -> Result<Oid, DerError>pub fn as_context_specific(
&self
) -> Result<(u8, Option<Box<DerObject<'a>>>), DerError>[src]
pub fn as_context_specific(
&self
) -> Result<(u8, Option<Box<DerObject<'a>>>), DerError>pub fn as_bitstring_ref(&self) -> Result<&BitStringObject, DerError>[src]
pub fn as_bitstring_ref(&self) -> Result<&BitStringObject, DerError>pub fn as_bitstring(&'a self) -> Result<BitStringObject<'a>, DerError>[src]
pub fn as_bitstring(&'a self) -> Result<BitStringObject<'a>, DerError>pub fn as_sequence(&self) -> Result<&Vec<DerObject<'a>>, DerError>[src]
pub fn as_sequence(&self) -> Result<&Vec<DerObject<'a>>, DerError>pub fn as_set(&self) -> Result<&Vec<DerObject<'a>>, DerError>[src]
pub fn as_set(&self) -> Result<&Vec<DerObject<'a>>, DerError>pub fn as_slice(&self) -> Result<&'a [u8], DerError>[src]
pub fn as_slice(&self) -> Result<&'a [u8], DerError>pub fn tag(&self) -> DerTag[src]
pub fn tag(&self) -> DerTagTrait Implementations
impl<'a> Debug for DerObjectContent<'a>[src]
impl<'a> Debug for DerObjectContent<'a>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'a> Clone for DerObjectContent<'a>[src]
impl<'a> Clone for DerObjectContent<'a>fn clone(&self) -> DerObjectContent<'a>[src]
fn clone(&self) -> DerObjectContent<'a>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<'a> PartialEq for DerObjectContent<'a>[src]
impl<'a> PartialEq for DerObjectContent<'a>fn eq(&self, other: &DerObjectContent<'a>) -> bool[src]
fn eq(&self, other: &DerObjectContent<'a>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &DerObjectContent<'a>) -> bool[src]
fn ne(&self, other: &DerObjectContent<'a>) -> boolThis method tests for !=.
impl<'a> From<DerObjectContent<'a>> for DerObject<'a>[src]
impl<'a> From<DerObjectContent<'a>> for DerObject<'a>Build a DER object from a DerObjectContent.
fn from(obj: DerObjectContent<'a>) -> DerObject<'a>[src]
fn from(obj: DerObjectContent<'a>) -> DerObject<'a>Performs the conversion.
Auto Trait Implementations
impl<'a> Send for DerObjectContent<'a>
impl<'a> Send for DerObjectContent<'a>impl<'a> Sync for DerObjectContent<'a>
impl<'a> Sync for DerObjectContent<'a>