Struct openssl::x509::GeneralNameRef
source · pub struct GeneralNameRef(_);Expand description
Reference to GeneralName.
Implementations§
source§impl 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 dnsname(&self) -> Option<&str>
pub fn dnsname(&self) -> Option<&str>
Returns the contents of this GeneralName if it is a dNSName.
Trait Implementations§
source§impl AsRef<GeneralNameRef> for GeneralName
impl AsRef<GeneralNameRef> for GeneralName
source§fn as_ref(&self) -> &GeneralNameRef
fn as_ref(&self) -> &GeneralNameRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<GeneralNameRef> for GeneralName
impl Borrow<GeneralNameRef> for GeneralName
source§fn borrow(&self) -> &GeneralNameRef
fn borrow(&self) -> &GeneralNameRef
Immutably borrows from an owned value. Read more