#[non_exhaustive]pub struct CmekConfig {
pub kms_key_name: String,
pub active_key_version: Vec<String>,
/* private fields */
}Expand description
The CMEK (Customer Managed Encryption Key) configuration for a Firestore database. If not present, the database is secured by the default Google encryption key.
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.kms_key_name: StringRequired. Only keys in the same location as this 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}.
active_key_version: Vec<String>Output only. Currently in-use KMS key versions. During key rotation, there can be multiple in-use key versions.
The expected format is
projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{key_version}.
Implementations§
Source§impl CmekConfig
impl CmekConfig
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
Sourcepub fn set_active_key_version<T, V>(self, v: T) -> Self
pub fn set_active_key_version<T, V>(self, v: T) -> Self
Sets the value of active_key_version.
§Example
let x = CmekConfig::new().set_active_key_version(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for CmekConfig
impl Clone for CmekConfig
Source§fn clone(&self) -> CmekConfig
fn clone(&self) -> CmekConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more