#[non_exhaustive]pub struct CreateCryptoKeyRequest {
pub parent: String,
pub crypto_key_id: String,
pub crypto_key: Option<CryptoKey>,
pub skip_initial_version_creation: bool,
/* private fields */
}Expand description
Request message for KeyManagementService.CreateCryptoKey.
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.parent: StringRequired. The name of the KeyRing associated with the CryptoKeys.
crypto_key_id: StringRequired. It must be unique within a KeyRing and match the regular
expression [a-zA-Z0-9_-]{1,63}
crypto_key: Option<CryptoKey>Required. A CryptoKey with initial field values.
skip_initial_version_creation: boolIf set to true, the request will create a CryptoKey without any CryptoKeyVersions. You must manually call CreateCryptoKeyVersion or ImportCryptoKeyVersion before you can use this CryptoKey.
Implementations§
Source§impl CreateCryptoKeyRequest
impl CreateCryptoKeyRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_crypto_key_id<T: Into<String>>(self, v: T) -> Self
pub fn set_crypto_key_id<T: Into<String>>(self, v: T) -> Self
Sets the value of crypto_key_id.
Sourcepub fn set_crypto_key<T>(self, v: T) -> Self
pub fn set_crypto_key<T>(self, v: T) -> Self
Sets the value of crypto_key.
Sourcepub fn set_or_clear_crypto_key<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_crypto_key<T>(self, v: Option<T>) -> Self
Sets or clears the value of crypto_key.
Sourcepub fn set_skip_initial_version_creation<T: Into<bool>>(self, v: T) -> Self
pub fn set_skip_initial_version_creation<T: Into<bool>>(self, v: T) -> Self
Sets the value of skip_initial_version_creation.
Trait Implementations§
Source§impl Clone for CreateCryptoKeyRequest
impl Clone for CreateCryptoKeyRequest
Source§fn clone(&self) -> CreateCryptoKeyRequest
fn clone(&self) -> CreateCryptoKeyRequest
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 CreateCryptoKeyRequest
impl Debug for CreateCryptoKeyRequest
Source§impl Default for CreateCryptoKeyRequest
impl Default for CreateCryptoKeyRequest
Source§fn default() -> CreateCryptoKeyRequest
fn default() -> CreateCryptoKeyRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateCryptoKeyRequest
impl Message for CreateCryptoKeyRequest
Source§impl PartialEq for CreateCryptoKeyRequest
impl PartialEq for CreateCryptoKeyRequest
impl StructuralPartialEq for CreateCryptoKeyRequest
Auto Trait Implementations§
impl !Freeze for CreateCryptoKeyRequest
impl RefUnwindSafe for CreateCryptoKeyRequest
impl Send for CreateCryptoKeyRequest
impl Sync for CreateCryptoKeyRequest
impl Unpin for CreateCryptoKeyRequest
impl UnwindSafe for CreateCryptoKeyRequest
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