Struct aws_sdk_acmpca::model::Asn1Subject
source · [−]#[non_exhaustive]pub struct Asn1Subject {Show 14 fields
pub country: Option<String>,
pub organization: Option<String>,
pub organizational_unit: Option<String>,
pub distinguished_name_qualifier: Option<String>,
pub state: Option<String>,
pub common_name: Option<String>,
pub serial_number: Option<String>,
pub locality: Option<String>,
pub title: Option<String>,
pub surname: Option<String>,
pub given_name: Option<String>,
pub initials: Option<String>,
pub pseudonym: Option<String>,
pub generation_qualifier: Option<String>,
}
Expand description
Contains information about the certificate subject. The Subject
field in the certificate identifies the entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or service. The Subject
must contain an X.500 distinguished name (DN). A DN is a sequence of relative distinguished names (RDNs). The RDNs are separated by commas in the certificate.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.country: Option<String>
Two-digit code that specifies the country in which the certificate subject located.
organization: Option<String>
Legal name of the organization with which the certificate subject is affiliated.
organizational_unit: Option<String>
A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.
distinguished_name_qualifier: Option<String>
Disambiguating information for the certificate subject.
state: Option<String>
State in which the subject of the certificate is located.
common_name: Option<String>
For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length limit.
Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) associated with the certificate subject.
serial_number: Option<String>
The certificate serial number.
locality: Option<String>
The locality (such as a city or town) in which the certificate subject is located.
title: Option<String>
A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject.
surname: Option<String>
Family name. In the US and the UK, for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first.
given_name: Option<String>
First name.
initials: Option<String>
Concatenation that typically contains the first letter of the GivenName, the first letter of the middle name if one exists, and the first letter of the Surname.
pseudonym: Option<String>
Typically a shortened version of a longer GivenName. For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza.
generation_qualifier: Option<String>
Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.
Implementations
sourceimpl Asn1Subject
impl Asn1Subject
sourcepub fn country(&self) -> Option<&str>
pub fn country(&self) -> Option<&str>
Two-digit code that specifies the country in which the certificate subject located.
sourcepub fn organization(&self) -> Option<&str>
pub fn organization(&self) -> Option<&str>
Legal name of the organization with which the certificate subject is affiliated.
sourcepub fn organizational_unit(&self) -> Option<&str>
pub fn organizational_unit(&self) -> Option<&str>
A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.
sourcepub fn distinguished_name_qualifier(&self) -> Option<&str>
pub fn distinguished_name_qualifier(&self) -> Option<&str>
Disambiguating information for the certificate subject.
sourcepub fn common_name(&self) -> Option<&str>
pub fn common_name(&self) -> Option<&str>
For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length limit.
Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) associated with the certificate subject.
sourcepub fn serial_number(&self) -> Option<&str>
pub fn serial_number(&self) -> Option<&str>
The certificate serial number.
sourcepub fn locality(&self) -> Option<&str>
pub fn locality(&self) -> Option<&str>
The locality (such as a city or town) in which the certificate subject is located.
sourcepub fn title(&self) -> Option<&str>
pub fn title(&self) -> Option<&str>
A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject.
sourcepub fn surname(&self) -> Option<&str>
pub fn surname(&self) -> Option<&str>
Family name. In the US and the UK, for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first.
sourcepub fn given_name(&self) -> Option<&str>
pub fn given_name(&self) -> Option<&str>
First name.
sourcepub fn initials(&self) -> Option<&str>
pub fn initials(&self) -> Option<&str>
Concatenation that typically contains the first letter of the GivenName, the first letter of the middle name if one exists, and the first letter of the Surname.
sourcepub fn pseudonym(&self) -> Option<&str>
pub fn pseudonym(&self) -> Option<&str>
Typically a shortened version of a longer GivenName. For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza.
sourcepub fn generation_qualifier(&self) -> Option<&str>
pub fn generation_qualifier(&self) -> Option<&str>
Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.
sourceimpl Asn1Subject
impl Asn1Subject
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture Asn1Subject
Trait Implementations
sourceimpl Clone for Asn1Subject
impl Clone for Asn1Subject
sourcefn clone(&self) -> Asn1Subject
fn clone(&self) -> Asn1Subject
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Asn1Subject
impl Debug for Asn1Subject
sourceimpl PartialEq<Asn1Subject> for Asn1Subject
impl PartialEq<Asn1Subject> for Asn1Subject
sourcefn eq(&self, other: &Asn1Subject) -> bool
fn eq(&self, other: &Asn1Subject) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Asn1Subject) -> bool
fn ne(&self, other: &Asn1Subject) -> bool
This method tests for !=
.
impl StructuralPartialEq for Asn1Subject
Auto Trait Implementations
impl RefUnwindSafe for Asn1Subject
impl Send for Asn1Subject
impl Sync for Asn1Subject
impl Unpin for Asn1Subject
impl UnwindSafe for Asn1Subject
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more