Struct openssl::x509::GeneralName
source · pub struct GeneralName(/* private fields */);
Expand description
An X509
certificate alternative names.
Methods from Deref<Target = 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§
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
source§impl Deref for GeneralName
impl Deref for GeneralName
§type Target = GeneralNameRef
type Target = GeneralNameRef
The resulting type after dereferencing.
source§fn deref(&self) -> &GeneralNameRef
fn deref(&self) -> &GeneralNameRef
Dereferences the value.
source§impl DerefMut for GeneralName
impl DerefMut for GeneralName
source§fn deref_mut(&mut self) -> &mut GeneralNameRef
fn deref_mut(&mut self) -> &mut GeneralNameRef
Mutably dereferences the value.
source§impl Drop for GeneralName
impl Drop for GeneralName
source§impl ForeignType for GeneralName
impl ForeignType for GeneralName
§type CType = GENERAL_NAME
type CType = GENERAL_NAME
The raw C type.
§type Ref = GeneralNameRef
type Ref = GeneralNameRef
The type representing a reference to this type.
source§unsafe fn from_ptr(ptr: *mut GENERAL_NAME) -> GeneralName
unsafe fn from_ptr(ptr: *mut GENERAL_NAME) -> GeneralName
Constructs an instance of this type from its raw type.
source§fn as_ptr(&self) -> *mut GENERAL_NAME
fn as_ptr(&self) -> *mut GENERAL_NAME
Returns a raw pointer to the wrapped value.
source§impl Stackable for GeneralName
impl Stackable for GeneralName
§type StackType = stack_st_GENERAL_NAME
type StackType = stack_st_GENERAL_NAME
The C stack type for this element. Read more
impl Send for GeneralName
impl Sync for GeneralName
Auto Trait Implementations§
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