Struct of_dn_parser::DistinguishedName
source · pub struct DistinguishedName { /* private fields */ }Expand description
A distinguished name (DN).
DNs are composed of a sequence of key-value pairs called relative distinguished names (RDNs).
Implementations§
source§impl DistinguishedName
impl DistinguishedName
sourcepub fn find(&self, ty: RdnType) -> Option<&str>
pub fn find(&self, ty: RdnType) -> Option<&str>
Find the value of the first occurence of the given RDN type.
sourcepub fn iter(&self) -> impl Iterator<Item = &RelativeDistinguishedName>
pub fn iter(&self) -> impl Iterator<Item = &RelativeDistinguishedName>
Returns an iterator over all RDNs of this DN.
sourcepub fn comparator(&self) -> Result<DnComparator>
pub fn comparator(&self) -> Result<DnComparator>
Create a comparator for this DN. RFC4518 requires that DNs be transformed before comparison, which is implemented by this comparator.
sourcepub fn to_of_string(&self) -> String
pub fn to_of_string(&self) -> String
Serialize into the OpenFinance variant string format: https://openfinancebrasil.atlassian.net/wiki/spaces/OF/pages/240649661/EN+Open+Finance+Brasil+Financial-grade+API+Dynamic+Client+Registration+1.0+Implementers+Draft+3#7.1.2.-Certificate-Distinguished-Name-Parsing.
Trait Implementations§
source§impl Clone for DistinguishedName
impl Clone for DistinguishedName
source§fn clone(&self) -> DistinguishedName
fn clone(&self) -> DistinguishedName
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for DistinguishedName
impl Debug for DistinguishedName
source§impl FromStr for DistinguishedName
impl FromStr for DistinguishedName
Parse from the canonical string format: https://datatracker.ietf.org/doc/html/rfc4514.
Auto Trait Implementations§
impl RefUnwindSafe for DistinguishedName
impl Send for DistinguishedName
impl Sync for DistinguishedName
impl Unpin for DistinguishedName
impl UnwindSafe for DistinguishedName
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