#[non_exhaustive]pub struct CreateRequiredEncryptionContextCmmInput {
pub keyring: Option<KeyringRef>,
pub required_encryption_context_keys: Option<Vec<String>>,
pub underlying_cmm: Option<CryptographicMaterialsManagerRef>,
}Expand description
Inputs for creating an Required Encryption Context Cryptographic Materials Manager.
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.keyring: Option<KeyringRef>The Keyring that the created Cryprographic Materials Manager will use to wrap data keys. The created Required Encryption Context CMM will delegate to a Default Cryptographic Materials Manager created with this Keyring. Either a Keyring or an underlying Cryprographic Materials Manager must be specified as input.
required_encryption_context_keys: Option<Vec<String>>A list of Encryption Context keys which are required to be supplied during encryption and decryption, and correspond to Encryption Context key-value pairs which are not stored on the resulting message.
underlying_cmm: Option<CryptographicMaterialsManagerRef>The Cryprographic Materials Manager that the created Required Encryption Context Cryptographic Materials Manager will delegate to. Either a Keyring or underlying Cryprographic Materials Manager must be specified.
Implementations§
Source§impl CreateRequiredEncryptionContextCmmInput
impl CreateRequiredEncryptionContextCmmInput
Sourcepub fn keyring(&self) -> &Option<KeyringRef>
pub fn keyring(&self) -> &Option<KeyringRef>
The Keyring that the created Cryprographic Materials Manager will use to wrap data keys. The created Required Encryption Context CMM will delegate to a Default Cryptographic Materials Manager created with this Keyring. Either a Keyring or an underlying Cryprographic Materials Manager must be specified as input.
Sourcepub fn required_encryption_context_keys(&self) -> &Option<Vec<String>>
pub fn required_encryption_context_keys(&self) -> &Option<Vec<String>>
A list of Encryption Context keys which are required to be supplied during encryption and decryption, and correspond to Encryption Context key-value pairs which are not stored on the resulting message.
Sourcepub fn underlying_cmm(&self) -> &Option<CryptographicMaterialsManagerRef>
pub fn underlying_cmm(&self) -> &Option<CryptographicMaterialsManagerRef>
The Cryprographic Materials Manager that the created Required Encryption Context Cryptographic Materials Manager will delegate to. Either a Keyring or underlying Cryprographic Materials Manager must be specified.
Source§impl CreateRequiredEncryptionContextCmmInput
impl CreateRequiredEncryptionContextCmmInput
Sourcepub fn builder() -> CreateRequiredEncryptionContextCmmInputBuilder
pub fn builder() -> CreateRequiredEncryptionContextCmmInputBuilder
Creates a new builder-style object to manufacture CreateRequiredEncryptionContextCmmInput.
Trait Implementations§
Source§impl Clone for CreateRequiredEncryptionContextCmmInput
impl Clone for CreateRequiredEncryptionContextCmmInput
Source§fn clone(&self) -> CreateRequiredEncryptionContextCmmInput
fn clone(&self) -> CreateRequiredEncryptionContextCmmInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PartialEq for CreateRequiredEncryptionContextCmmInput
impl PartialEq for CreateRequiredEncryptionContextCmmInput
Source§fn eq(&self, other: &CreateRequiredEncryptionContextCmmInput) -> bool
fn eq(&self, other: &CreateRequiredEncryptionContextCmmInput) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateRequiredEncryptionContextCmmInput
Auto Trait Implementations§
impl Freeze for CreateRequiredEncryptionContextCmmInput
impl RefUnwindSafe for CreateRequiredEncryptionContextCmmInput
impl Send for CreateRequiredEncryptionContextCmmInput
impl Sync for CreateRequiredEncryptionContextCmmInput
impl Unpin for CreateRequiredEncryptionContextCmmInput
impl UnwindSafe for CreateRequiredEncryptionContextCmmInput
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§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