Struct pkix::oid::commonName
source · pub struct commonName { /* private fields */ }
Methods from Deref<Target = ObjectIdentifier>§
sourcepub fn components(&self) -> &Vec<u64>
pub fn components(&self) -> &Vec<u64>
Borrows its internal vector of components.
Examples
use yasna::models::ObjectIdentifier;
let pkcs1 = ObjectIdentifier::from_slice(&
[1, 2, 840, 113549, 1, 1]);
let components : &Vec<u64> = pkcs1.components();
Trait Implementations§
source§impl Deref for commonName
impl Deref for commonName
§type Target = ObjectIdentifier
type Target = ObjectIdentifier
The resulting type after dereferencing.
source§fn deref(&self) -> &ObjectIdentifier
fn deref(&self) -> &ObjectIdentifier
Dereferences the value.
impl LazyStatic for commonName
Auto Trait Implementations§
impl RefUnwindSafe for commonName
impl Send for commonName
impl Sync for commonName
impl Unpin for commonName
impl UnwindSafe for commonName
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