#[non_exhaustive]pub struct EncryptionInfo {
pub encryption_type: EncryptionType,
pub encryption_status: Option<Status>,
pub kms_key_version: String,
/* private fields */
}Expand description
Encryption information for a given resource. If this resource is protected with customer managed encryption, the in-use Cloud Key Management Service (Cloud KMS) key version is specified along with its status.
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.encryption_type: EncryptionTypeOutput only. The type of encryption used to protect this resource.
encryption_status: Option<Status>Output only. The status of encrypt/decrypt calls on underlying data for this resource. Regardless of status, the existing data is always encrypted at rest.
kms_key_version: StringOutput only. The version of the Cloud KMS key specified in the parent cluster that is in use for the data underlying this table.
Implementations§
Source§impl EncryptionInfo
impl EncryptionInfo
pub fn new() -> Self
Sourcepub fn set_encryption_type<T: Into<EncryptionType>>(self, v: T) -> Self
pub fn set_encryption_type<T: Into<EncryptionType>>(self, v: T) -> Self
Sets the value of encryption_type.
§Example
ⓘ
use google_cloud_bigtable_admin_v2::model::encryption_info::EncryptionType;
let x0 = EncryptionInfo::new().set_encryption_type(EncryptionType::GoogleDefaultEncryption);
let x1 = EncryptionInfo::new().set_encryption_type(EncryptionType::CustomerManagedEncryption);Sourcepub fn set_encryption_status<T>(self, v: T) -> Self
pub fn set_encryption_status<T>(self, v: T) -> Self
Sets the value of encryption_status.
§Example
ⓘ
use rpc::model::Status;
let x = EncryptionInfo::new().set_encryption_status(Status::default()/* use setters */);Sourcepub fn set_or_clear_encryption_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_encryption_status<T>(self, v: Option<T>) -> Self
Sets or clears the value of encryption_status.
§Example
ⓘ
use rpc::model::Status;
let x = EncryptionInfo::new().set_or_clear_encryption_status(Some(Status::default()/* use setters */));
let x = EncryptionInfo::new().set_or_clear_encryption_status(None::<Status>);Sourcepub fn set_kms_key_version<T: Into<String>>(self, v: T) -> Self
pub fn set_kms_key_version<T: Into<String>>(self, v: T) -> Self
Sets the value of kms_key_version.
§Example
ⓘ
let x = EncryptionInfo::new().set_kms_key_version("example");Trait Implementations§
Source§impl Clone for EncryptionInfo
impl Clone for EncryptionInfo
Source§fn clone(&self) -> EncryptionInfo
fn clone(&self) -> EncryptionInfo
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 Debug for EncryptionInfo
impl Debug for EncryptionInfo
Source§impl Default for EncryptionInfo
impl Default for EncryptionInfo
Source§fn default() -> EncryptionInfo
fn default() -> EncryptionInfo
Returns the “default value” for a type. Read more
Source§impl Message for EncryptionInfo
impl Message for EncryptionInfo
Source§impl PartialEq for EncryptionInfo
impl PartialEq for EncryptionInfo
impl StructuralPartialEq for EncryptionInfo
Auto Trait Implementations§
impl Freeze for EncryptionInfo
impl RefUnwindSafe for EncryptionInfo
impl Send for EncryptionInfo
impl Sync for EncryptionInfo
impl Unpin for EncryptionInfo
impl UnwindSafe for EncryptionInfo
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