#[non_exhaustive]pub struct Encryption {
pub default_kms_key: String,
pub google_managed_encryption_enforcement_config: Option<GoogleManagedEncryptionEnforcementConfig>,
pub customer_managed_encryption_enforcement_config: Option<CustomerManagedEncryptionEnforcementConfig>,
pub customer_supplied_encryption_enforcement_config: Option<CustomerSuppliedEncryptionEnforcementConfig>,
/* private fields */
}Expand description
Encryption properties of a bucket.
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.default_kms_key: StringOptional. The name of the Cloud KMS key that is used to encrypt objects inserted into this bucket, if no encryption method is specified.
google_managed_encryption_enforcement_config: Option<GoogleManagedEncryptionEnforcementConfig>Optional. If omitted, then new objects with GMEK encryption-type is allowed. If set, then new objects created in this bucket must comply with enforcement config. Changing this has no effect on existing objects; it applies to new objects only.
customer_managed_encryption_enforcement_config: Option<CustomerManagedEncryptionEnforcementConfig>Optional. If omitted, then new objects with CMEK encryption-type is allowed. If set, then new objects created in this bucket must comply with enforcement config. Changing this has no effect on existing objects; it applies to new objects only.
customer_supplied_encryption_enforcement_config: Option<CustomerSuppliedEncryptionEnforcementConfig>Optional. If omitted, then new objects with CSEK encryption-type is allowed. If set, then new objects created in this bucket must comply with enforcement config. Changing this has no effect on existing objects; it applies to new objects only.
Implementations§
Source§impl Encryption
impl Encryption
pub fn new() -> Self
Sourcepub fn set_default_kms_key<T: Into<String>>(self, v: T) -> Self
pub fn set_default_kms_key<T: Into<String>>(self, v: T) -> Self
Sets the value of default_kms_key.
Sourcepub fn set_google_managed_encryption_enforcement_config<T>(self, v: T) -> Selfwhere
T: Into<GoogleManagedEncryptionEnforcementConfig>,
pub fn set_google_managed_encryption_enforcement_config<T>(self, v: T) -> Selfwhere
T: Into<GoogleManagedEncryptionEnforcementConfig>,
Sets the value of google_managed_encryption_enforcement_config.
Sourcepub fn set_or_clear_google_managed_encryption_enforcement_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<GoogleManagedEncryptionEnforcementConfig>,
pub fn set_or_clear_google_managed_encryption_enforcement_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<GoogleManagedEncryptionEnforcementConfig>,
Sets or clears the value of google_managed_encryption_enforcement_config.
Sourcepub fn set_customer_managed_encryption_enforcement_config<T>(self, v: T) -> Selfwhere
T: Into<CustomerManagedEncryptionEnforcementConfig>,
pub fn set_customer_managed_encryption_enforcement_config<T>(self, v: T) -> Selfwhere
T: Into<CustomerManagedEncryptionEnforcementConfig>,
Sets the value of customer_managed_encryption_enforcement_config.
Sourcepub fn set_or_clear_customer_managed_encryption_enforcement_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<CustomerManagedEncryptionEnforcementConfig>,
pub fn set_or_clear_customer_managed_encryption_enforcement_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<CustomerManagedEncryptionEnforcementConfig>,
Sets or clears the value of customer_managed_encryption_enforcement_config.
Sourcepub fn set_customer_supplied_encryption_enforcement_config<T>(
self,
v: T,
) -> Selfwhere
T: Into<CustomerSuppliedEncryptionEnforcementConfig>,
pub fn set_customer_supplied_encryption_enforcement_config<T>(
self,
v: T,
) -> Selfwhere
T: Into<CustomerSuppliedEncryptionEnforcementConfig>,
Sets the value of customer_supplied_encryption_enforcement_config.
Sourcepub fn set_or_clear_customer_supplied_encryption_enforcement_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<CustomerSuppliedEncryptionEnforcementConfig>,
pub fn set_or_clear_customer_supplied_encryption_enforcement_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<CustomerSuppliedEncryptionEnforcementConfig>,
Sets or clears the value of customer_supplied_encryption_enforcement_config.
Trait Implementations§
Source§impl Clone for Encryption
impl Clone for Encryption
Source§fn clone(&self) -> Encryption
fn clone(&self) -> Encryption
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Encryption
impl Debug for Encryption
Source§impl Default for Encryption
impl Default for Encryption
Source§fn default() -> Encryption
fn default() -> Encryption
Source§impl PartialEq for Encryption
impl PartialEq for Encryption
impl StructuralPartialEq for Encryption
Auto Trait Implementations§
impl Freeze for Encryption
impl RefUnwindSafe for Encryption
impl Send for Encryption
impl Sync for Encryption
impl Unpin for Encryption
impl UnwindSafe for Encryption
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request