Struct picky_asn1_x509::name::Name
source · pub struct Name(pub RdnSequence);
Expand description
Name ::= CHOICE { -- only one possibility for now --
rdnSequence RDNSequence }
Tuple Fields§
§0: RdnSequence
Implementations§
source§impl Name
impl Name
pub fn new() -> Self
pub fn new_common_name<S: Into<DirectoryString>>(name: S) -> Self
sourcepub fn find_common_name(&self) -> Option<&DirectoryString>
pub fn find_common_name(&self) -> Option<&DirectoryString>
Find the first common name contained in this Name
pub fn add_attr<S: Into<DirectoryString>>(&mut self, attr: NameAttr, value: S)
sourcepub fn add_email<S: Into<Ia5StringAsn1>>(&mut self, value: S)
pub fn add_email<S: Into<Ia5StringAsn1>>(&mut self, value: S)
Add an emailAddress attribute. NOTE: this attribute does not conform with the RFC 5280, email should be placed in SAN instead
Trait Implementations§
source§impl<'de> Deserialize<'de> for Name
impl<'de> Deserialize<'de> for Name
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Name> for GeneralName
impl From<Name> for GeneralName
source§impl PartialEq<Name> for Name
impl PartialEq<Name> for Name
impl Eq for Name
impl StructuralEq for Name
impl StructuralPartialEq for Name
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more