Struct openssl::x509::GeneralName
source · [−]pub struct GeneralName(_);
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 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 Deref for GeneralName
impl Deref for GeneralName
type Target = GeneralNameRef
type Target = GeneralNameRef
The resulting type after dereferencing.
sourcefn deref(&self) -> &GeneralNameRef
fn deref(&self) -> &GeneralNameRef
Dereferences the value.
sourceimpl DerefMut for GeneralName
impl DerefMut for GeneralName
sourcefn deref_mut(&mut self) -> &mut GeneralNameRef
fn deref_mut(&mut self) -> &mut GeneralNameRef
Mutably dereferences the value.
sourceimpl Drop for GeneralName
impl Drop for GeneralName
sourceimpl 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.
sourceunsafe 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.
sourcefn as_ptr(&self) -> *mut GENERAL_NAME
fn as_ptr(&self) -> *mut GENERAL_NAME
Returns a raw pointer to the wrapped value.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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