#[non_exhaustive]pub struct DatabaseEncryption {
pub key_name: String,
pub state: State,
pub current_state: Option<CurrentState>,
pub decryption_keys: Vec<String>,
pub last_operation_errors: Vec<OperationError>,
}Expand description
Configuration of etcd encryption.
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.key_name: StringName of CloudKMS key to use for the encryption of secrets in etcd. Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
state: StateThe desired state of etcd encryption.
current_state: Option<CurrentState>Output only. The current state of etcd encryption.
decryption_keys: Vec<String>Output only. Keys in use by the cluster for decrypting
existing objects, in addition to the key in key_name.
Each item is a CloudKMS key resource.
last_operation_errors: Vec<OperationError>Output only. Records errors seen during DatabaseEncryption update operations.
Implementations§
Source§impl DatabaseEncryption
impl DatabaseEncryption
Sourcepub fn set_key_name<T: Into<String>>(self, v: T) -> Self
pub fn set_key_name<T: Into<String>>(self, v: T) -> Self
Sets the value of key_name.
Sourcepub fn set_current_state<T: Into<Option<CurrentState>>>(self, v: T) -> Self
pub fn set_current_state<T: Into<Option<CurrentState>>>(self, v: T) -> Self
Sets the value of current_state.
Sourcepub fn set_decryption_keys<T, V>(self, v: T) -> Self
pub fn set_decryption_keys<T, V>(self, v: T) -> Self
Sets the value of decryption_keys.
Sourcepub fn set_last_operation_errors<T, V>(self, v: T) -> Self
pub fn set_last_operation_errors<T, V>(self, v: T) -> Self
Sets the value of last_operation_errors.
Trait Implementations§
Source§impl Clone for DatabaseEncryption
impl Clone for DatabaseEncryption
Source§fn clone(&self) -> DatabaseEncryption
fn clone(&self) -> DatabaseEncryption
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 DatabaseEncryption
impl Debug for DatabaseEncryption
Source§impl Default for DatabaseEncryption
impl Default for DatabaseEncryption
Source§fn default() -> DatabaseEncryption
fn default() -> DatabaseEncryption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DatabaseEncryptionwhere
DatabaseEncryption: Default,
impl<'de> Deserialize<'de> for DatabaseEncryptionwhere
DatabaseEncryption: 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 DatabaseEncryption
impl Message for DatabaseEncryption
Source§impl PartialEq for DatabaseEncryption
impl PartialEq for DatabaseEncryption
Source§impl Serialize for DatabaseEncryption
impl Serialize for DatabaseEncryption
impl StructuralPartialEq for DatabaseEncryption
Auto Trait Implementations§
impl Freeze for DatabaseEncryption
impl RefUnwindSafe for DatabaseEncryption
impl Send for DatabaseEncryption
impl Sync for DatabaseEncryption
impl Unpin for DatabaseEncryption
impl UnwindSafe for DatabaseEncryption
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