#[non_exhaustive]pub struct DiskEncryptionConfiguration {
pub kms_key_name: String,
pub kind: String,
pub confidential_mode: Option<bool>,
pub cmek_source_log_encryption_enforced: Option<bool>,
/* private fields */
}Expand description
Disk encryption configuration for an instance.
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: StringResource name of KMS key for disk encryption.
kind: StringThis is always sql#diskEncryptionConfiguration.
confidential_mode: Option<bool>Optional. If true, enables Confidential Mode for the instance’s Hyperdisk Balanced volumes. Only supported for zonal C4A instances currently.
cmek_source_log_encryption_enforced: Option<bool>Optional. Whether to enforce CMEK log encryption at source. When enforced, transaction logs are encrypted prior to being uploaded to Cloud Storage. If not enforced, then CMEK logs are encrypted by the Cloud Storage service.
Implementations§
Source§impl DiskEncryptionConfiguration
impl DiskEncryptionConfiguration
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 = DiskEncryptionConfiguration::new().set_kms_key_name("example");Sourcepub fn set_confidential_mode<T>(self, v: T) -> Self
pub fn set_confidential_mode<T>(self, v: T) -> Self
Sets the value of confidential_mode.
§Example
ⓘ
let x = DiskEncryptionConfiguration::new().set_confidential_mode(true);Sourcepub fn set_or_clear_confidential_mode<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_confidential_mode<T>(self, v: Option<T>) -> Self
Sets or clears the value of confidential_mode.
§Example
ⓘ
let x = DiskEncryptionConfiguration::new().set_or_clear_confidential_mode(Some(false));
let x = DiskEncryptionConfiguration::new().set_or_clear_confidential_mode(None::<bool>);Sourcepub fn set_cmek_source_log_encryption_enforced<T>(self, v: T) -> Self
pub fn set_cmek_source_log_encryption_enforced<T>(self, v: T) -> Self
Sets the value of cmek_source_log_encryption_enforced.
§Example
ⓘ
let x = DiskEncryptionConfiguration::new().set_cmek_source_log_encryption_enforced(true);Sourcepub fn set_or_clear_cmek_source_log_encryption_enforced<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_cmek_source_log_encryption_enforced<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of cmek_source_log_encryption_enforced.
§Example
ⓘ
let x = DiskEncryptionConfiguration::new().set_or_clear_cmek_source_log_encryption_enforced(Some(false));
let x = DiskEncryptionConfiguration::new().set_or_clear_cmek_source_log_encryption_enforced(None::<bool>);Trait Implementations§
Source§impl Clone for DiskEncryptionConfiguration
impl Clone for DiskEncryptionConfiguration
Source§impl Debug for DiskEncryptionConfiguration
impl Debug for DiskEncryptionConfiguration
impl StructuralPartialEq for DiskEncryptionConfiguration
Auto Trait Implementations§
impl Freeze for DiskEncryptionConfiguration
impl RefUnwindSafe for DiskEncryptionConfiguration
impl Send for DiskEncryptionConfiguration
impl Sync for DiskEncryptionConfiguration
impl Unpin for DiskEncryptionConfiguration
impl UnsafeUnpin for DiskEncryptionConfiguration
impl UnwindSafe for DiskEncryptionConfiguration
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