pub struct Name {
pub attributes: Vec<(String, String)>,
}Expand description
A distinguished name as an ordered list of (attribute OID, value).
Fields§
§attributes: Vec<(String, String)>Implementations§
Source§impl Name
impl Name
pub fn common_name(&self) -> Option<&str>
Sourcepub fn to_dn_string(&self) -> String
pub fn to_dn_string(&self) -> String
The name with the most specific attribute first (CN=x, O=y, C=z), as Java’s
X500Principal.toString() renders it.
Trait Implementations§
impl Eq for Name
impl StructuralPartialEq for Name
Auto Trait Implementations§
impl Forget for Name
impl Freeze for Name
impl Move for Name
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnsafeUnpin 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