Struct openssl::x509::X509NameEntryRef
source · pub struct X509NameEntryRef(/* private fields */);
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.
impl Send for X509NameEntryRef
impl Sync for X509NameEntryRef
Auto Trait Implementations§
impl !Freeze for X509NameEntryRef
impl !RefUnwindSafe for X509NameEntryRef
impl Unpin for X509NameEntryRef
impl UnwindSafe for X509NameEntryRef
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