#[non_exhaustive]pub struct EncryptionKey {
pub gcp_kms_encryption_key: String,
/* private fields */
}Expand description
Defined a customer managed encryption key that will be used to encrypt Backup artifacts.
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.gcp_kms_encryption_key: StringOptional. Google Cloud KMS encryption key. Format:
projects/*/locations/*/keyRings/*/cryptoKeys/*
Implementations§
Source§impl EncryptionKey
impl EncryptionKey
pub fn new() -> Self
Sourcepub fn set_gcp_kms_encryption_key<T: Into<String>>(self, v: T) -> Self
pub fn set_gcp_kms_encryption_key<T: Into<String>>(self, v: T) -> Self
Sets the value of gcp_kms_encryption_key.
§Example
ⓘ
let x = EncryptionKey::new().set_gcp_kms_encryption_key("example");Trait Implementations§
Source§impl Clone for EncryptionKey
impl Clone for EncryptionKey
Source§fn clone(&self) -> EncryptionKey
fn clone(&self) -> EncryptionKey
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 EncryptionKey
impl Debug for EncryptionKey
Source§impl Default for EncryptionKey
impl Default for EncryptionKey
Source§fn default() -> EncryptionKey
fn default() -> EncryptionKey
Returns the “default value” for a type. Read more
Source§impl Message for EncryptionKey
impl Message for EncryptionKey
Source§impl PartialEq for EncryptionKey
impl PartialEq for EncryptionKey
impl StructuralPartialEq for EncryptionKey
Auto Trait Implementations§
impl Freeze for EncryptionKey
impl RefUnwindSafe for EncryptionKey
impl Send for EncryptionKey
impl Sync for EncryptionKey
impl Unpin for EncryptionKey
impl UnsafeUnpin for EncryptionKey
impl UnwindSafe for EncryptionKey
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