[][src]Struct picky_asn1_x509::name::Name

pub struct Name(pub RDNSequence);

RFC 5280 #4.1.2.4

Name ::= CHOICE { -- only one possibility for now --
      rdnSequence  RDNSequence }

Implementations

impl Name[src]

pub fn new() -> Self[src]

pub fn new_common_name<S: Into<DirectoryString>>(name: S) -> Self[src]

pub fn find_common_name(&self) -> Option<&DirectoryString>[src]

Find the first common name contained in this Name

pub fn add_attr<S: Into<DirectoryString>>(&mut self, attr: NameAttr, value: S)[src]

pub fn add_email<S: Into<IA5StringAsn1>>(&mut self, value: S)[src]

Add an emailAddress attribute. NOTE: this attribute does not conform with the RFC 5280, email should be placed in SAN instead

Trait Implementations

impl Clone for Name[src]

impl Debug for Name[src]

impl Default for Name[src]

impl<'de> Deserialize<'de> for Name[src]

impl Display for Name[src]

impl From<Name> for GeneralName[src]

impl PartialEq<Name> for Name[src]

impl Serialize for Name[src]

impl StructuralPartialEq for Name[src]

Auto Trait Implementations

impl RefUnwindSafe for Name

impl Send for Name

impl Sync for Name

impl Unpin for Name

impl UnwindSafe for Name

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> 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> ToString for T where
    T: Display + ?Sized
[src]

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.