Struct aws_sdk_acmpca::model::asn1_subject::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for Asn1Subject
Implementations
sourceimpl Builder
impl Builder
sourcepub fn country(self, input: impl Into<String>) -> Self
pub fn country(self, input: impl Into<String>) -> Self
Two-digit code that specifies the country in which the certificate subject located.
sourcepub fn set_country(self, input: Option<String>) -> Self
pub fn set_country(self, input: Option<String>) -> Self
Two-digit code that specifies the country in which the certificate subject located.
sourcepub fn organization(self, input: impl Into<String>) -> Self
pub fn organization(self, input: impl Into<String>) -> Self
Legal name of the organization with which the certificate subject is affiliated.
sourcepub fn set_organization(self, input: Option<String>) -> Self
pub fn set_organization(self, input: Option<String>) -> Self
Legal name of the organization with which the certificate subject is affiliated.
sourcepub fn organizational_unit(self, input: impl Into<String>) -> Self
pub fn organizational_unit(self, input: impl Into<String>) -> Self
A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.
sourcepub fn set_organizational_unit(self, input: Option<String>) -> Self
pub fn set_organizational_unit(self, input: Option<String>) -> Self
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, input: impl Into<String>) -> Self
pub fn distinguished_name_qualifier(self, input: impl Into<String>) -> Self
Disambiguating information for the certificate subject.
sourcepub fn set_distinguished_name_qualifier(self, input: Option<String>) -> Self
pub fn set_distinguished_name_qualifier(self, input: Option<String>) -> Self
Disambiguating information for the certificate subject.
sourcepub fn state(self, input: impl Into<String>) -> Self
pub fn state(self, input: impl Into<String>) -> Self
State in which the subject of the certificate is located.
sourcepub fn set_state(self, input: Option<String>) -> Self
pub fn set_state(self, input: Option<String>) -> Self
State in which the subject of the certificate is located.
sourcepub fn common_name(self, input: impl Into<String>) -> Self
pub fn common_name(self, input: impl Into<String>) -> Self
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 set_common_name(self, input: Option<String>) -> Self
pub fn set_common_name(self, input: Option<String>) -> Self
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, input: impl Into<String>) -> Self
pub fn serial_number(self, input: impl Into<String>) -> Self
The certificate serial number.
sourcepub fn set_serial_number(self, input: Option<String>) -> Self
pub fn set_serial_number(self, input: Option<String>) -> Self
The certificate serial number.
sourcepub fn locality(self, input: impl Into<String>) -> Self
pub fn locality(self, input: impl Into<String>) -> Self
The locality (such as a city or town) in which the certificate subject is located.
sourcepub fn set_locality(self, input: Option<String>) -> Self
pub fn set_locality(self, input: Option<String>) -> Self
The locality (such as a city or town) in which the certificate subject is located.
sourcepub fn title(self, input: impl Into<String>) -> Self
pub fn title(self, input: impl Into<String>) -> Self
A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject.
sourcepub fn set_title(self, input: Option<String>) -> Self
pub fn set_title(self, input: Option<String>) -> Self
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, input: impl Into<String>) -> Self
pub fn surname(self, input: impl Into<String>) -> Self
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 set_surname(self, input: Option<String>) -> Self
pub fn set_surname(self, input: Option<String>) -> Self
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, input: impl Into<String>) -> Self
pub fn given_name(self, input: impl Into<String>) -> Self
First name.
sourcepub fn set_given_name(self, input: Option<String>) -> Self
pub fn set_given_name(self, input: Option<String>) -> Self
First name.
sourcepub fn initials(self, input: impl Into<String>) -> Self
pub fn initials(self, input: impl Into<String>) -> Self
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 set_initials(self, input: Option<String>) -> Self
pub fn set_initials(self, input: Option<String>) -> Self
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, input: impl Into<String>) -> Self
pub fn pseudonym(self, input: impl Into<String>) -> Self
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 set_pseudonym(self, input: Option<String>) -> Self
pub fn set_pseudonym(self, input: Option<String>) -> Self
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, input: impl Into<String>) -> Self
pub fn generation_qualifier(self, input: impl Into<String>) -> Self
Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.
sourcepub fn set_generation_qualifier(self, input: Option<String>) -> Self
pub fn set_generation_qualifier(self, input: Option<String>) -> Self
Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.
sourcepub fn build(self) -> Asn1Subject
pub fn build(self) -> Asn1Subject
Consumes the builder and constructs a Asn1Subject
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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