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
Source§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
Source§type CType = GENERAL_NAME
type CType = GENERAL_NAME
The raw C type.
Source§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
Source§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§
impl Freeze for GeneralName
impl RefUnwindSafe for GeneralName
impl Unpin for GeneralName
impl UnwindSafe for GeneralName
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