Struct aws_sdk_acmpca::model::Extensions
source · [−]#[non_exhaustive]pub struct Extensions {
pub certificate_policies: Option<Vec<PolicyInformation>>,
pub extended_key_usage: Option<Vec<ExtendedKeyUsage>>,
pub key_usage: Option<KeyUsage>,
pub subject_alternative_names: Option<Vec<GeneralName>>,
}
Expand description
Contains X.509 extension information for a 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.certificate_policies: Option<Vec<PolicyInformation>>
Contains a sequence of one or more policy information terms, each of which consists of an object identifier (OID) and optional qualifiers. For more information, see NIST's definition of Object Identifier (OID).
In an end-entity certificate, these terms indicate the policy under which the certificate was issued and the purposes for which it may be used. In a CA certificate, these terms limit the set of policies for certification paths that include this certificate.
extended_key_usage: Option<Vec<ExtendedKeyUsage>>
Specifies additional purposes for which the certified public key may be used other than basic purposes indicated in the KeyUsage
extension.
key_usage: Option<KeyUsage>
Defines one or more purposes for which the key contained in the certificate can be used. Default value for each option is false.
subject_alternative_names: Option<Vec<GeneralName>>
The subject alternative name extension allows identities to be bound to the subject of the certificate. These identities may be included in addition to or in place of the identity in the subject field of the certificate.
Implementations
sourceimpl Extensions
impl Extensions
sourcepub fn certificate_policies(&self) -> Option<&[PolicyInformation]>
pub fn certificate_policies(&self) -> Option<&[PolicyInformation]>
Contains a sequence of one or more policy information terms, each of which consists of an object identifier (OID) and optional qualifiers. For more information, see NIST's definition of Object Identifier (OID).
In an end-entity certificate, these terms indicate the policy under which the certificate was issued and the purposes for which it may be used. In a CA certificate, these terms limit the set of policies for certification paths that include this certificate.
sourcepub fn extended_key_usage(&self) -> Option<&[ExtendedKeyUsage]>
pub fn extended_key_usage(&self) -> Option<&[ExtendedKeyUsage]>
Specifies additional purposes for which the certified public key may be used other than basic purposes indicated in the KeyUsage
extension.
sourcepub fn key_usage(&self) -> Option<&KeyUsage>
pub fn key_usage(&self) -> Option<&KeyUsage>
Defines one or more purposes for which the key contained in the certificate can be used. Default value for each option is false.
sourcepub fn subject_alternative_names(&self) -> Option<&[GeneralName]>
pub fn subject_alternative_names(&self) -> Option<&[GeneralName]>
The subject alternative name extension allows identities to be bound to the subject of the certificate. These identities may be included in addition to or in place of the identity in the subject field of the certificate.
sourceimpl Extensions
impl Extensions
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture Extensions
Trait Implementations
sourceimpl Clone for Extensions
impl Clone for Extensions
sourcefn clone(&self) -> Extensions
fn clone(&self) -> Extensions
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 Extensions
impl Debug for Extensions
sourceimpl PartialEq<Extensions> for Extensions
impl PartialEq<Extensions> for Extensions
sourcefn eq(&self, other: &Extensions) -> bool
fn eq(&self, other: &Extensions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Extensions) -> bool
fn ne(&self, other: &Extensions) -> bool
This method tests for !=
.
impl StructuralPartialEq for Extensions
Auto Trait Implementations
impl RefUnwindSafe for Extensions
impl Send for Extensions
impl Sync for Extensions
impl Unpin for Extensions
impl UnwindSafe for Extensions
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