#[non_exhaustive]pub struct CustomerManagedEncryption {
pub kms_key_name: String,
}Expand description
Configuration for encrypting secret payloads using customer-managed encryption keys (CMEK).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kms_key_name: StringRequired. The resource name of the Cloud KMS CryptoKey used to encrypt secret payloads.
For secrets using the UserManaged replication policy type, Cloud KMS CryptoKeys must reside in the same location as the [replica location][Secret.UserManaged.Replica.location].
For secrets using the
Automatic
replication policy type, Cloud KMS CryptoKeys must reside in global.
The expected format is projects/*/locations/*/keyRings/*/cryptoKeys/*.
Implementations§
Source§impl CustomerManagedEncryption
impl CustomerManagedEncryption
Sourcepub fn set_kms_key_name<T: Into<String>>(self, v: T) -> Self
pub fn set_kms_key_name<T: Into<String>>(self, v: T) -> Self
Sets the value of kms_key_name.
Trait Implementations§
Source§impl Clone for CustomerManagedEncryption
impl Clone for CustomerManagedEncryption
Source§fn clone(&self) -> CustomerManagedEncryption
fn clone(&self) -> CustomerManagedEncryption
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CustomerManagedEncryption
impl Debug for CustomerManagedEncryption
Source§impl Default for CustomerManagedEncryption
impl Default for CustomerManagedEncryption
Source§fn default() -> CustomerManagedEncryption
fn default() -> CustomerManagedEncryption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustomerManagedEncryptionwhere
CustomerManagedEncryption: Default,
impl<'de> Deserialize<'de> for CustomerManagedEncryptionwhere
CustomerManagedEncryption: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for CustomerManagedEncryption
impl Message for CustomerManagedEncryption
impl StructuralPartialEq for CustomerManagedEncryption
Auto Trait Implementations§
impl Freeze for CustomerManagedEncryption
impl RefUnwindSafe for CustomerManagedEncryption
impl Send for CustomerManagedEncryption
impl Sync for CustomerManagedEncryption
impl Unpin for CustomerManagedEncryption
impl UnwindSafe for CustomerManagedEncryption
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
Mutably borrows from an owned value. Read more