#[non_exhaustive]pub struct KeyModesOfUseBuilder { /* private fields */ }Expand description
A builder for KeyModesOfUse.
Implementations§
source§impl KeyModesOfUseBuilder
impl KeyModesOfUseBuilder
sourcepub fn encrypt(self, input: bool) -> Self
pub fn encrypt(self, input: bool) -> Self
Specifies whether an Amazon Web Services Payment Cryptography key can be used to encrypt data.
sourcepub fn set_encrypt(self, input: Option<bool>) -> Self
pub fn set_encrypt(self, input: Option<bool>) -> Self
Specifies whether an Amazon Web Services Payment Cryptography key can be used to encrypt data.
sourcepub fn get_encrypt(&self) -> &Option<bool>
pub fn get_encrypt(&self) -> &Option<bool>
Specifies whether an Amazon Web Services Payment Cryptography key can be used to encrypt data.
sourcepub fn decrypt(self, input: bool) -> Self
pub fn decrypt(self, input: bool) -> Self
Specifies whether an Amazon Web Services Payment Cryptography key can be used to decrypt data.
sourcepub fn set_decrypt(self, input: Option<bool>) -> Self
pub fn set_decrypt(self, input: Option<bool>) -> Self
Specifies whether an Amazon Web Services Payment Cryptography key can be used to decrypt data.
sourcepub fn get_decrypt(&self) -> &Option<bool>
pub fn get_decrypt(&self) -> &Option<bool>
Specifies whether an Amazon Web Services Payment Cryptography key can be used to decrypt data.
sourcepub fn wrap(self, input: bool) -> Self
pub fn wrap(self, input: bool) -> Self
Specifies whether an Amazon Web Services Payment Cryptography key can be used to wrap other keys.
sourcepub fn set_wrap(self, input: Option<bool>) -> Self
pub fn set_wrap(self, input: Option<bool>) -> Self
Specifies whether an Amazon Web Services Payment Cryptography key can be used to wrap other keys.
sourcepub fn get_wrap(&self) -> &Option<bool>
pub fn get_wrap(&self) -> &Option<bool>
Specifies whether an Amazon Web Services Payment Cryptography key can be used to wrap other keys.
sourcepub fn unwrap(self, input: bool) -> Self
pub fn unwrap(self, input: bool) -> Self
Specifies whether an Amazon Web Services Payment Cryptography key can be used to unwrap other keys.
sourcepub fn set_unwrap(self, input: Option<bool>) -> Self
pub fn set_unwrap(self, input: Option<bool>) -> Self
Specifies whether an Amazon Web Services Payment Cryptography key can be used to unwrap other keys.
sourcepub fn get_unwrap(&self) -> &Option<bool>
pub fn get_unwrap(&self) -> &Option<bool>
Specifies whether an Amazon Web Services Payment Cryptography key can be used to unwrap other keys.
sourcepub fn generate(self, input: bool) -> Self
pub fn generate(self, input: bool) -> Self
Specifies whether an Amazon Web Services Payment Cryptography key can be used to generate and verify other card and PIN verification keys.
sourcepub fn set_generate(self, input: Option<bool>) -> Self
pub fn set_generate(self, input: Option<bool>) -> Self
Specifies whether an Amazon Web Services Payment Cryptography key can be used to generate and verify other card and PIN verification keys.
sourcepub fn get_generate(&self) -> &Option<bool>
pub fn get_generate(&self) -> &Option<bool>
Specifies whether an Amazon Web Services Payment Cryptography key can be used to generate and verify other card and PIN verification keys.
sourcepub fn sign(self, input: bool) -> Self
pub fn sign(self, input: bool) -> Self
Specifies whether an Amazon Web Services Payment Cryptography key can be used for signing.
sourcepub fn set_sign(self, input: Option<bool>) -> Self
pub fn set_sign(self, input: Option<bool>) -> Self
Specifies whether an Amazon Web Services Payment Cryptography key can be used for signing.
sourcepub fn get_sign(&self) -> &Option<bool>
pub fn get_sign(&self) -> &Option<bool>
Specifies whether an Amazon Web Services Payment Cryptography key can be used for signing.
sourcepub fn verify(self, input: bool) -> Self
pub fn verify(self, input: bool) -> Self
Specifies whether an Amazon Web Services Payment Cryptography key can be used to verify signatures.
sourcepub fn set_verify(self, input: Option<bool>) -> Self
pub fn set_verify(self, input: Option<bool>) -> Self
Specifies whether an Amazon Web Services Payment Cryptography key can be used to verify signatures.
sourcepub fn get_verify(&self) -> &Option<bool>
pub fn get_verify(&self) -> &Option<bool>
Specifies whether an Amazon Web Services Payment Cryptography key can be used to verify signatures.
sourcepub fn derive_key(self, input: bool) -> Self
pub fn derive_key(self, input: bool) -> Self
Specifies whether an Amazon Web Services Payment Cryptography key can be used to derive new keys.
sourcepub fn set_derive_key(self, input: Option<bool>) -> Self
pub fn set_derive_key(self, input: Option<bool>) -> Self
Specifies whether an Amazon Web Services Payment Cryptography key can be used to derive new keys.
sourcepub fn get_derive_key(&self) -> &Option<bool>
pub fn get_derive_key(&self) -> &Option<bool>
Specifies whether an Amazon Web Services Payment Cryptography key can be used to derive new keys.
sourcepub fn no_restrictions(self, input: bool) -> Self
pub fn no_restrictions(self, input: bool) -> Self
Specifies whether an Amazon Web Services Payment Cryptography key has no special restrictions other than the restrictions implied by KeyUsage.
sourcepub fn set_no_restrictions(self, input: Option<bool>) -> Self
pub fn set_no_restrictions(self, input: Option<bool>) -> Self
Specifies whether an Amazon Web Services Payment Cryptography key has no special restrictions other than the restrictions implied by KeyUsage.
sourcepub fn get_no_restrictions(&self) -> &Option<bool>
pub fn get_no_restrictions(&self) -> &Option<bool>
Specifies whether an Amazon Web Services Payment Cryptography key has no special restrictions other than the restrictions implied by KeyUsage.
sourcepub fn build(self) -> KeyModesOfUse
pub fn build(self) -> KeyModesOfUse
Consumes the builder and constructs a KeyModesOfUse.
Trait Implementations§
source§impl Clone for KeyModesOfUseBuilder
impl Clone for KeyModesOfUseBuilder
source§fn clone(&self) -> KeyModesOfUseBuilder
fn clone(&self) -> KeyModesOfUseBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for KeyModesOfUseBuilder
impl Debug for KeyModesOfUseBuilder
source§impl Default for KeyModesOfUseBuilder
impl Default for KeyModesOfUseBuilder
source§fn default() -> KeyModesOfUseBuilder
fn default() -> KeyModesOfUseBuilder
source§impl PartialEq for KeyModesOfUseBuilder
impl PartialEq for KeyModesOfUseBuilder
source§fn eq(&self, other: &KeyModesOfUseBuilder) -> bool
fn eq(&self, other: &KeyModesOfUseBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for KeyModesOfUseBuilder
Auto Trait Implementations§
impl Freeze for KeyModesOfUseBuilder
impl RefUnwindSafe for KeyModesOfUseBuilder
impl Send for KeyModesOfUseBuilder
impl Sync for KeyModesOfUseBuilder
impl Unpin for KeyModesOfUseBuilder
impl UnwindSafe for KeyModesOfUseBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more