#[non_exhaustive]pub struct CryptoKeyConfig {
pub key_reference: String,
/* private fields */
}Expand description
The crypto key configuration. This field is used by the Customer-managed encryption keys (CMEK) feature.
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_reference: StringThe name of the key which is used to encrypt/decrypt customer data. For key
in Cloud KMS, the key should be in the format of
projects/*/locations/*/keyRings/*/cryptoKeys/*.
Implementations§
Source§impl CryptoKeyConfig
impl CryptoKeyConfig
pub fn new() -> Self
Sourcepub fn set_key_reference<T: Into<String>>(self, v: T) -> Self
pub fn set_key_reference<T: Into<String>>(self, v: T) -> Self
Sets the value of key_reference.
Trait Implementations§
Source§impl Clone for CryptoKeyConfig
impl Clone for CryptoKeyConfig
Source§fn clone(&self) -> CryptoKeyConfig
fn clone(&self) -> CryptoKeyConfig
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 CryptoKeyConfig
impl Debug for CryptoKeyConfig
Source§impl Default for CryptoKeyConfig
impl Default for CryptoKeyConfig
Source§fn default() -> CryptoKeyConfig
fn default() -> CryptoKeyConfig
Returns the “default value” for a type. Read more
Source§impl Message for CryptoKeyConfig
impl Message for CryptoKeyConfig
Source§impl PartialEq for CryptoKeyConfig
impl PartialEq for CryptoKeyConfig
impl StructuralPartialEq for CryptoKeyConfig
Auto Trait Implementations§
impl Freeze for CryptoKeyConfig
impl RefUnwindSafe for CryptoKeyConfig
impl Send for CryptoKeyConfig
impl Sync for CryptoKeyConfig
impl Unpin for CryptoKeyConfig
impl UnwindSafe for CryptoKeyConfig
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