#[non_exhaustive]pub struct EncryptionInfo {
pub encryption_type: Type,
pub kms_key_versions: Vec<String>,
pub kms_key_primary_state: KmsKeyState,
pub last_update_time: Option<Timestamp>,
/* private fields */
}Expand description
EncryptionInfo describes the encryption information of a cluster or a backup.
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: TypeOutput only. Type of encryption.
kms_key_versions: Vec<String>Output only. KMS key versions that are being used to protect the data at-rest.
kms_key_primary_state: KmsKeyStateOutput only. The state of the primary version of the KMS key perceived by the system. This field is not populated in backups.
last_update_time: Option<Timestamp>Output only. The most recent time when the encryption info was updated.
Implementations§
Source§impl EncryptionInfo
impl EncryptionInfo
pub fn new() -> Self
Sourcepub fn set_encryption_type<T: Into<Type>>(self, v: T) -> Self
pub fn set_encryption_type<T: Into<Type>>(self, v: T) -> Self
Sets the value of encryption_type.
Sourcepub fn set_kms_key_versions<T, V>(self, v: T) -> Self
pub fn set_kms_key_versions<T, V>(self, v: T) -> Self
Sets the value of kms_key_versions.
Sourcepub fn set_kms_key_primary_state<T: Into<KmsKeyState>>(self, v: T) -> Self
pub fn set_kms_key_primary_state<T: Into<KmsKeyState>>(self, v: T) -> Self
Sets the value of kms_key_primary_state.
Sourcepub fn set_last_update_time<T>(self, v: T) -> Self
pub fn set_last_update_time<T>(self, v: T) -> Self
Sets the value of last_update_time.
Sourcepub fn set_or_clear_last_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_last_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of last_update_time.
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