pub struct X509NameBuilder(_);
Expand description

A builder used to construct an X509Name.

Implementations

Creates a new builder.

source

pub fn append_entry(&mut self, ne: &X509NameEntryRef) -> Result<(), ErrorStack>

Add a name entry

This corresponds to X509_NAME_add_entry.

source

pub fn append_entry_by_text(
    &mut self,
    field: &str,
    value: &str
) -> Result<(), ErrorStack>

Add a field entry by str.

This corresponds to X509_NAME_add_entry_by_txt.

source

pub fn append_entry_by_text_with_type(
    &mut self,
    field: &str,
    value: &str,
    ty: Asn1Type
) -> Result<(), ErrorStack>

Add a field entry by str with a specific type.

This corresponds to X509_NAME_add_entry_by_txt.

source

pub fn append_entry_by_nid(
    &mut self,
    field: Nid,
    value: &str
) -> Result<(), ErrorStack>

Add a field entry by NID.

This corresponds to X509_NAME_add_entry_by_NID.

source

pub fn append_entry_by_nid_with_type(
    &mut self,
    field: Nid,
    value: &str,
    ty: Asn1Type
) -> Result<(), ErrorStack>

Add a field entry by NID with a specific type.

This corresponds to X509_NAME_add_entry_by_NID.

Return an X509Name.

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.