Struct aws_sdk_acmpca::model::KeyUsage
source · [−]#[non_exhaustive]pub struct KeyUsage {
pub digital_signature: bool,
pub non_repudiation: bool,
pub key_encipherment: bool,
pub data_encipherment: bool,
pub key_agreement: bool,
pub key_cert_sign: bool,
pub crl_sign: bool,
pub encipher_only: bool,
pub decipher_only: bool,
}
Expand description
Defines one or more purposes for which the key contained in the certificate can be used. Default value for each option is false.
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.digital_signature: bool
Key can be used for digital signing.
non_repudiation: bool
Key can be used for non-repudiation.
key_encipherment: bool
Key can be used to encipher data.
data_encipherment: bool
Key can be used to decipher data.
key_agreement: bool
Key can be used in a key-agreement protocol.
key_cert_sign: bool
Key can be used to sign certificates.
crl_sign: bool
Key can be used to sign CRLs.
encipher_only: bool
Key can be used only to encipher data.
decipher_only: bool
Key can be used only to decipher data.
Implementations
sourceimpl KeyUsage
impl KeyUsage
sourcepub fn digital_signature(&self) -> bool
pub fn digital_signature(&self) -> bool
Key can be used for digital signing.
sourcepub fn non_repudiation(&self) -> bool
pub fn non_repudiation(&self) -> bool
Key can be used for non-repudiation.
sourcepub fn key_encipherment(&self) -> bool
pub fn key_encipherment(&self) -> bool
Key can be used to encipher data.
sourcepub fn data_encipherment(&self) -> bool
pub fn data_encipherment(&self) -> bool
Key can be used to decipher data.
sourcepub fn key_agreement(&self) -> bool
pub fn key_agreement(&self) -> bool
Key can be used in a key-agreement protocol.
sourcepub fn key_cert_sign(&self) -> bool
pub fn key_cert_sign(&self) -> bool
Key can be used to sign certificates.
sourcepub fn encipher_only(&self) -> bool
pub fn encipher_only(&self) -> bool
Key can be used only to encipher data.
sourcepub fn decipher_only(&self) -> bool
pub fn decipher_only(&self) -> bool
Key can be used only to decipher data.
Trait Implementations
impl StructuralPartialEq for KeyUsage
Auto Trait Implementations
impl RefUnwindSafe for KeyUsage
impl Send for KeyUsage
impl Sync for KeyUsage
impl Unpin for KeyUsage
impl UnwindSafe for KeyUsage
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