Struct google_cloudkms1::api::CryptoKeyVersionTemplate
source · pub struct CryptoKeyVersionTemplate {
pub algorithm: Option<String>,
pub protection_level: Option<String>,
}
Expand description
A CryptoKeyVersionTemplate specifies the properties to use when creating a new CryptoKeyVersion, either manually with CreateCryptoKeyVersion or automatically as a result of auto-rotation.
This type is not used in any activity, and only used as part of another schema.
Fields§
§algorithm: Option<String>
Required. Algorithm to use when creating a CryptoKeyVersion based on this template. For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both this field is omitted and CryptoKey.purpose is ENCRYPT_DECRYPT.
protection_level: Option<String>
ProtectionLevel to use when creating a CryptoKeyVersion based on this template. Immutable. Defaults to SOFTWARE.
Trait Implementations§
source§impl Clone for CryptoKeyVersionTemplate
impl Clone for CryptoKeyVersionTemplate
source§fn clone(&self) -> CryptoKeyVersionTemplate
fn clone(&self) -> CryptoKeyVersionTemplate
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 CryptoKeyVersionTemplate
impl Debug for CryptoKeyVersionTemplate
source§impl Default for CryptoKeyVersionTemplate
impl Default for CryptoKeyVersionTemplate
source§fn default() -> CryptoKeyVersionTemplate
fn default() -> CryptoKeyVersionTemplate
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CryptoKeyVersionTemplate
impl<'de> Deserialize<'de> for CryptoKeyVersionTemplate
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 Serialize for CryptoKeyVersionTemplate
impl Serialize for CryptoKeyVersionTemplate
impl Part for CryptoKeyVersionTemplate
Auto Trait Implementations§
impl RefUnwindSafe for CryptoKeyVersionTemplate
impl Send for CryptoKeyVersionTemplate
impl Sync for CryptoKeyVersionTemplate
impl Unpin for CryptoKeyVersionTemplate
impl UnwindSafe for CryptoKeyVersionTemplate
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