#[non_exhaustive]pub struct EncryptionInfo {
pub encryption_type: Type,
pub encryption_status: Option<Status>,
pub kms_key_version: String,
}
Expand description
Encryption information for a Cloud Spanner database or 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: Type
Output only. The type of encryption.
encryption_status: Option<Status>
Output only. If present, the status of a recent encrypt/decrypt call on underlying data for this database or backup. Regardless of status, data is always encrypted at rest.
kms_key_version: String
Output only. A Cloud KMS key version that is being used to protect the database or backup.
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_encryption_status<T: Into<Option<Status>>>(self, v: T) -> Self
pub fn set_encryption_status<T: Into<Option<Status>>>(self, v: T) -> Self
Sets the value of encryption_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.
Trait Implementations§
Source§impl Clone for EncryptionInfo
impl Clone for EncryptionInfo
Source§fn clone(&self) -> EncryptionInfo
fn clone(&self) -> EncryptionInfo
Returns a copy 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<'de> Deserialize<'de> for EncryptionInfowhere
EncryptionInfo: Default,
impl<'de> Deserialize<'de> for EncryptionInfowhere
EncryptionInfo: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for EncryptionInfo
impl Message for EncryptionInfo
Source§impl PartialEq for EncryptionInfo
impl PartialEq for EncryptionInfo
Source§impl Serialize for EncryptionInfo
impl Serialize 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