Struct openssl::x509::GeneralNameRef
source · [−]pub struct GeneralNameRef(_);
Expand description
Reference to GeneralName
.
Implementations
sourceimpl GeneralNameRef
impl GeneralNameRef
sourcepub fn email(&self) -> Option<&str>
pub fn email(&self) -> Option<&str>
Returns the contents of this GeneralName
if it is an rfc822Name
.
sourcepub fn directory_name(&self) -> Option<&X509NameRef>
pub fn directory_name(&self) -> Option<&X509NameRef>
Returns the contents of this GeneralName
if it is a directoryName
.
sourcepub fn dnsname(&self) -> Option<&str>
pub fn dnsname(&self) -> Option<&str>
Returns the contents of this GeneralName
if it is a dNSName
.
Trait Implementations
sourceimpl AsRef<GeneralNameRef> for GeneralName
impl AsRef<GeneralNameRef> for GeneralName
sourcefn as_ref(&self) -> &GeneralNameRef
fn as_ref(&self) -> &GeneralNameRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<GeneralNameRef> for GeneralName
impl Borrow<GeneralNameRef> for GeneralName
sourcefn borrow(&self) -> &GeneralNameRef
fn borrow(&self) -> &GeneralNameRef
Immutably borrows from an owned value. Read more
sourceimpl Debug for GeneralNameRef
impl Debug for GeneralNameRef
sourceimpl ForeignTypeRef for GeneralNameRef
impl ForeignTypeRef for GeneralNameRef
impl Send for GeneralNameRef
impl Sync for GeneralNameRef
Auto Trait Implementations
impl !RefUnwindSafe for GeneralNameRef
impl Unpin for GeneralNameRef
impl UnwindSafe for GeneralNameRef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more