Struct cryptographic_message_syntax::RelativeDistinguishedName[][src]

pub struct RelativeDistinguishedName(_);

Represents a Relative Distinguished Name (RDN).

These are what certificate subject and issuer fields are. Manipulating these yourself is hard. This type makes it easier.

Implementations

impl RelativeDistinguishedName[src]

pub fn common_name(&self) -> Result<Option<String>, Error>[src]

Obtain the Common Name (CN) field.

pub fn set_common_name(&mut self, value: &str) -> Result<(), CharSetError>[src]

Set the value of the Common Name (CN) field.

pub fn country_name(&self) -> Result<Option<String>, Error>[src]

Obtain the Country Name (C) field.

pub fn set_country_name(&mut self, value: &str) -> Result<(), CharSetError>[src]

Set the value of the Country Name (C) field.

pub fn organization_name(&self) -> Result<Option<String>, Error>[src]

Obtain the Organization Name (O) field.

pub fn set_organization_name(&mut self, value: &str) -> Result<(), CharSetError>[src]

Set the value of the Organization Name (O) field.

pub fn organizational_unit_name(&self) -> Result<Option<String>, Error>[src]

Obtain the Organizational Unit Name (OU) field.

pub fn set_organizational_unit_name(
    &mut self,
    value: &str
) -> Result<(), CharSetError>
[src]

Set the value of the Organizational Unit Name (OU) field.

pub fn set_attribute_string(
    &mut self,
    attribute: Oid,
    value: &str
) -> Result<(), CharSetError>
[src]

Trait Implementations

impl Clone for RelativeDistinguishedName[src]

impl Debug for RelativeDistinguishedName[src]

impl Default for RelativeDistinguishedName[src]

impl From<RelativeDistinguishedName> for Name[src]

impl TryFrom<&'_ Name> for RelativeDistinguishedName[src]

type Error = CmsError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.