#[non_exhaustive]pub struct DistinguishedName {
pub country_name: Option<String>,
pub state_or_province_name: Option<String>,
pub locality_name: Option<String>,
pub organization_name: Option<String>,
pub organizational_unit_name: Option<String>,
pub common_name: String,
pub email_address: Option<String>,
pub subject_alt_names: Option<Vec<String>>,
}Expand description
DistinguishedName : Data used for creation of CSRs. If subjectAltNames is omitted, it is set to the same value as commonName. If it is set to an empty list, no SAN Extension is added.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.country_name: Option<String>§state_or_province_name: Option<String>§locality_name: Option<String>§organization_name: Option<String>§organizational_unit_name: Option<String>§common_name: String§email_address: Option<String>§subject_alt_names: Option<Vec<String>>Implementations§
Source§impl DistinguishedName
impl DistinguishedName
Sourcepub fn new(common_name: String) -> DistinguishedName
pub fn new(common_name: String) -> DistinguishedName
Data used for creation of CSRs. If subjectAltNames is omitted, it is set to the same value as commonName. If it is set to an empty list, no SAN Extension is added.
Trait Implementations§
Source§impl Clone for DistinguishedName
impl Clone for DistinguishedName
Source§fn clone(&self) -> DistinguishedName
fn clone(&self) -> DistinguishedName
Returns a duplicate 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<'de> Deserialize<'de> for DistinguishedName
impl<'de> Deserialize<'de> for DistinguishedName
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 PartialEq for DistinguishedName
impl PartialEq for DistinguishedName
Source§impl Serialize for DistinguishedName
impl Serialize for DistinguishedName
impl StructuralPartialEq for DistinguishedName
Auto Trait Implementations§
impl Freeze for DistinguishedName
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