#[non_exhaustive]pub struct CustomerManagedEncryptionOptions {
pub kms_key_name: String,
/* private fields */
}Expand description
The configuration options for using CMEK (Customer Managed Encryption Key) encryption.
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. Only keys in the same location as the database are allowed to be used for encryption.
For Firestore’s nam5 multi-region, this corresponds to Cloud KMS multi-region us. For Firestore’s eur3 multi-region, this corresponds to Cloud KMS multi-region europe. See https://cloud.google.com/kms/docs/locations.
The expected format is
projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
Implementations§
Source§impl CustomerManagedEncryptionOptions
impl CustomerManagedEncryptionOptions
pub fn new() -> Self
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.
§Example
ⓘ
let x = CustomerManagedEncryptionOptions::new().set_kms_key_name("example");Trait Implementations§
Source§impl Clone for CustomerManagedEncryptionOptions
impl Clone for CustomerManagedEncryptionOptions
Source§fn clone(&self) -> CustomerManagedEncryptionOptions
fn clone(&self) -> CustomerManagedEncryptionOptions
Returns a duplicate 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 Default for CustomerManagedEncryptionOptions
impl Default for CustomerManagedEncryptionOptions
Source§fn default() -> CustomerManagedEncryptionOptions
fn default() -> CustomerManagedEncryptionOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for CustomerManagedEncryptionOptions
impl PartialEq for CustomerManagedEncryptionOptions
Source§fn eq(&self, other: &CustomerManagedEncryptionOptions) -> bool
fn eq(&self, other: &CustomerManagedEncryptionOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CustomerManagedEncryptionOptions
Auto Trait Implementations§
impl Freeze for CustomerManagedEncryptionOptions
impl RefUnwindSafe for CustomerManagedEncryptionOptions
impl Send for CustomerManagedEncryptionOptions
impl Sync for CustomerManagedEncryptionOptions
impl Unpin for CustomerManagedEncryptionOptions
impl UnwindSafe for CustomerManagedEncryptionOptions
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