Struct aws_sdk_acmpca::model::GeneralName
source · [−]#[non_exhaustive]pub struct GeneralName {
pub other_name: Option<OtherName>,
pub rfc822_name: Option<String>,
pub dns_name: Option<String>,
pub directory_name: Option<Asn1Subject>,
pub edi_party_name: Option<EdiPartyName>,
pub uniform_resource_identifier: Option<String>,
pub ip_address: Option<String>,
pub registered_id: Option<String>,
}
Expand description
Describes an ASN.1 X.400 GeneralName
as defined in RFC 5280. Only one of the following naming options should be provided. Providing more than one option results in an InvalidArgsException
error.
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.other_name: Option<OtherName>
Represents GeneralName
using an OtherName
object.
rfc822_name: Option<String>
Represents GeneralName
as an RFC 822 email address.
dns_name: Option<String>
Represents GeneralName
as a DNS name.
directory_name: Option<Asn1Subject>
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.
edi_party_name: Option<EdiPartyName>
Represents GeneralName
as an EdiPartyName
object.
uniform_resource_identifier: Option<String>
Represents GeneralName
as a URI.
ip_address: Option<String>
Represents GeneralName
as an IPv4 or IPv6 address.
registered_id: Option<String>
Represents GeneralName
as an object identifier (OID).
Implementations
sourceimpl GeneralName
impl GeneralName
sourcepub fn other_name(&self) -> Option<&OtherName>
pub fn other_name(&self) -> Option<&OtherName>
Represents GeneralName
using an OtherName
object.
sourcepub fn rfc822_name(&self) -> Option<&str>
pub fn rfc822_name(&self) -> Option<&str>
Represents GeneralName
as an RFC 822 email address.
sourcepub fn directory_name(&self) -> Option<&Asn1Subject>
pub fn directory_name(&self) -> Option<&Asn1Subject>
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.
sourcepub fn edi_party_name(&self) -> Option<&EdiPartyName>
pub fn edi_party_name(&self) -> Option<&EdiPartyName>
Represents GeneralName
as an EdiPartyName
object.
sourcepub fn uniform_resource_identifier(&self) -> Option<&str>
pub fn uniform_resource_identifier(&self) -> Option<&str>
Represents GeneralName
as a URI.
sourcepub fn ip_address(&self) -> Option<&str>
pub fn ip_address(&self) -> Option<&str>
Represents GeneralName
as an IPv4 or IPv6 address.
sourcepub fn registered_id(&self) -> Option<&str>
pub fn registered_id(&self) -> Option<&str>
Represents GeneralName
as an object identifier (OID).
sourceimpl GeneralName
impl GeneralName
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GeneralName
Trait Implementations
sourceimpl Clone for GeneralName
impl Clone for GeneralName
sourcefn clone(&self) -> GeneralName
fn clone(&self) -> GeneralName
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 GeneralName
impl Debug for GeneralName
sourceimpl PartialEq<GeneralName> for GeneralName
impl PartialEq<GeneralName> for GeneralName
sourcefn eq(&self, other: &GeneralName) -> bool
fn eq(&self, other: &GeneralName) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GeneralName) -> bool
fn ne(&self, other: &GeneralName) -> bool
This method tests for !=
.
impl StructuralPartialEq for GeneralName
Auto Trait Implementations
impl RefUnwindSafe for GeneralName
impl Send for GeneralName
impl Sync for GeneralName
impl Unpin for GeneralName
impl UnwindSafe for GeneralName
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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