pub struct X509NameRef(_);
Expand description

Reference to X509Name.

Implementations

Returns the name entries by the nid.

Returns an iterator over all X509NameEntry values

Compare two names, like Ord but it may fail.

With OpenSSL versions from 3.0.0 this may return an error if the underlying X509_NAME_cmp call fails. For OpenSSL versions before 3.0.0 it will never return an error, but due to a bug it may spuriously return Ordering::Less if the X509_NAME_cmp call fails.

This corresponds to X509_NAME_cmp.

Copies the name to a new X509Name.

This corresponds to X509_NAME_dup.

Serializes the certificate into a DER-encoded X509 name structure.

This corresponds to i2d_X509_NAME.

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.
Immutably borrows from an owned value. Read more
Formats the value using the given formatter. Read more
The raw C type.
Constructs a shared instance of this type from its raw type.
Constructs a mutable reference of this type from its raw type.
Returns a raw pointer to the wrapped value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.