Struct cryptographic_message_syntax::RelativeDistinguishedName [−][src]
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]
&mut self,
value: &str
) -> Result<(), CharSetError>
Set the value of the Organizational Unit Name (OU) field.
pub fn set_attribute_string(
&mut self,
attribute: Oid,
value: &str
) -> Result<(), CharSetError>
[src]
&mut self,
attribute: Oid,
value: &str
) -> Result<(), CharSetError>
Trait Implementations
impl Clone for RelativeDistinguishedName
[src]
fn clone(&self) -> RelativeDistinguishedName
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RelativeDistinguishedName
[src]
impl Default for RelativeDistinguishedName
[src]
impl From<RelativeDistinguishedName> for Name
[src]
fn from(rdn: RelativeDistinguishedName) -> Self
[src]
impl TryFrom<&'_ Name> for RelativeDistinguishedName
[src]
Auto Trait Implementations
impl RefUnwindSafe for RelativeDistinguishedName
impl Send for RelativeDistinguishedName
impl Sync for RelativeDistinguishedName
impl Unpin for RelativeDistinguishedName
impl UnwindSafe for RelativeDistinguishedName
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,