Struct openssl::x509::X509NameEntryRef
source · pub struct X509NameEntryRef(_);
Expand description
Reference to X509NameEntry
.
Implementations§
source§impl X509NameEntryRef
impl X509NameEntryRef
sourcepub fn data(&self) -> &Asn1StringRef
pub fn data(&self) -> &Asn1StringRef
Returns the field value of an X509NameEntry
.
This corresponds to X509_NAME_ENTRY_get_data
.
sourcepub fn object(&self) -> &Asn1ObjectRef
pub fn object(&self) -> &Asn1ObjectRef
Returns the Asn1Object
value of an X509NameEntry
.
This is useful for finding out about the actual Nid
when iterating over all X509NameEntries
.
This corresponds to X509_NAME_ENTRY_get_object
.
Trait Implementations§
source§impl AsRef<X509NameEntryRef> for X509NameEntry
impl AsRef<X509NameEntryRef> for X509NameEntry
source§fn as_ref(&self) -> &X509NameEntryRef
fn as_ref(&self) -> &X509NameEntryRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<X509NameEntryRef> for X509NameEntry
impl Borrow<X509NameEntryRef> for X509NameEntry
source§fn borrow(&self) -> &X509NameEntryRef
fn borrow(&self) -> &X509NameEntryRef
Immutably borrows from an owned value. Read more
source§impl Debug for X509NameEntryRef
impl Debug for X509NameEntryRef
source§impl ForeignTypeRef for X509NameEntryRef
impl ForeignTypeRef for X509NameEntryRef
§type CType = X509_NAME_ENTRY
type CType = X509_NAME_ENTRY
The raw C type.
source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type.
source§unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
Constructs a mutable reference of this type from its raw type.