#[non_exhaustive]pub struct EncryptDataInput {
pub key_identifier: Option<String>,
pub plain_text: Option<String>,
pub encryption_attributes: Option<EncryptionDecryptionAttributes>,
pub wrapped_key: Option<WrappedKey>,
}
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.key_identifier: Option<String>
The keyARN
of the encryption key that Amazon Web Services Payment Cryptography uses for plaintext encryption.
When a WrappedKeyBlock is provided, this value will be the identifier to the key wrapping key. Otherwise, it is the key identifier used to perform the operation.
plain_text: Option<String>
The plaintext to be encrypted.
For encryption using asymmetric keys, plaintext data length is constrained by encryption key strength that you define in KeyAlgorithm
and padding type that you define in AsymmetricEncryptionAttributes
. For more information, see Encrypt data in the Amazon Web Services Payment Cryptography User Guide.
encryption_attributes: Option<EncryptionDecryptionAttributes>
The encryption key type and attributes for plaintext encryption.
wrapped_key: Option<WrappedKey>
The WrappedKeyBlock containing the encryption key for plaintext encryption.
Implementations§
source§impl EncryptDataInput
impl EncryptDataInput
sourcepub fn key_identifier(&self) -> Option<&str>
pub fn key_identifier(&self) -> Option<&str>
The keyARN
of the encryption key that Amazon Web Services Payment Cryptography uses for plaintext encryption.
When a WrappedKeyBlock is provided, this value will be the identifier to the key wrapping key. Otherwise, it is the key identifier used to perform the operation.
sourcepub fn plain_text(&self) -> Option<&str>
pub fn plain_text(&self) -> Option<&str>
The plaintext to be encrypted.
For encryption using asymmetric keys, plaintext data length is constrained by encryption key strength that you define in KeyAlgorithm
and padding type that you define in AsymmetricEncryptionAttributes
. For more information, see Encrypt data in the Amazon Web Services Payment Cryptography User Guide.
sourcepub fn encryption_attributes(&self) -> Option<&EncryptionDecryptionAttributes>
pub fn encryption_attributes(&self) -> Option<&EncryptionDecryptionAttributes>
The encryption key type and attributes for plaintext encryption.
sourcepub fn wrapped_key(&self) -> Option<&WrappedKey>
pub fn wrapped_key(&self) -> Option<&WrappedKey>
The WrappedKeyBlock containing the encryption key for plaintext encryption.
source§impl EncryptDataInput
impl EncryptDataInput
sourcepub fn builder() -> EncryptDataInputBuilder
pub fn builder() -> EncryptDataInputBuilder
Creates a new builder-style object to manufacture EncryptDataInput
.
Trait Implementations§
source§impl Clone for EncryptDataInput
impl Clone for EncryptDataInput
source§fn clone(&self) -> EncryptDataInput
fn clone(&self) -> EncryptDataInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EncryptDataInput
impl Debug for EncryptDataInput
source§impl PartialEq for EncryptDataInput
impl PartialEq for EncryptDataInput
source§fn eq(&self, other: &EncryptDataInput) -> bool
fn eq(&self, other: &EncryptDataInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EncryptDataInput
Auto Trait Implementations§
impl Freeze for EncryptDataInput
impl RefUnwindSafe for EncryptDataInput
impl Send for EncryptDataInput
impl Sync for EncryptDataInput
impl Unpin for EncryptDataInput
impl UnwindSafe for EncryptDataInput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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