#[non_exhaustive]pub struct CreateCryptoKeyVersionRequest {
pub parent: String,
pub crypto_key_version: Option<CryptoKeyVersion>,
/* private fields */
}Expand description
Request message for KeyManagementService.CreateCryptoKeyVersion.
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 CryptoKey associated with the CryptoKeyVersions.
crypto_key_version: Option<CryptoKeyVersion>Required. A CryptoKeyVersion with initial field values.
Implementations§
Source§impl CreateCryptoKeyVersionRequest
impl CreateCryptoKeyVersionRequest
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
Sourcepub fn set_crypto_key_version<T>(self, v: T) -> Selfwhere
T: Into<CryptoKeyVersion>,
pub fn set_crypto_key_version<T>(self, v: T) -> Selfwhere
T: Into<CryptoKeyVersion>,
Sets the value of crypto_key_version.
§Example
ⓘ
use google_cloud_kms_v1::model::CryptoKeyVersion;
let x = CreateCryptoKeyVersionRequest::new().set_crypto_key_version(CryptoKeyVersion::default()/* use setters */);Sourcepub fn set_or_clear_crypto_key_version<T>(self, v: Option<T>) -> Selfwhere
T: Into<CryptoKeyVersion>,
pub fn set_or_clear_crypto_key_version<T>(self, v: Option<T>) -> Selfwhere
T: Into<CryptoKeyVersion>,
Sets or clears the value of crypto_key_version.
§Example
ⓘ
use google_cloud_kms_v1::model::CryptoKeyVersion;
let x = CreateCryptoKeyVersionRequest::new().set_or_clear_crypto_key_version(Some(CryptoKeyVersion::default()/* use setters */));
let x = CreateCryptoKeyVersionRequest::new().set_or_clear_crypto_key_version(None::<CryptoKeyVersion>);Trait Implementations§
Source§impl Clone for CreateCryptoKeyVersionRequest
impl Clone for CreateCryptoKeyVersionRequest
Source§fn clone(&self) -> CreateCryptoKeyVersionRequest
fn clone(&self) -> CreateCryptoKeyVersionRequest
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 Default for CreateCryptoKeyVersionRequest
impl Default for CreateCryptoKeyVersionRequest
Source§fn default() -> CreateCryptoKeyVersionRequest
fn default() -> CreateCryptoKeyVersionRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateCryptoKeyVersionRequest
impl PartialEq for CreateCryptoKeyVersionRequest
Source§fn eq(&self, other: &CreateCryptoKeyVersionRequest) -> bool
fn eq(&self, other: &CreateCryptoKeyVersionRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateCryptoKeyVersionRequest
Auto Trait Implementations§
impl !Freeze for CreateCryptoKeyVersionRequest
impl RefUnwindSafe for CreateCryptoKeyVersionRequest
impl Send for CreateCryptoKeyVersionRequest
impl Sync for CreateCryptoKeyVersionRequest
impl Unpin for CreateCryptoKeyVersionRequest
impl UnwindSafe for CreateCryptoKeyVersionRequest
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