#[non_exhaustive]pub struct RegionSnapshotUpdateKmsKeyRequest {
pub kms_key_name: Option<String>,
/* private fields */
}Available on crate feature
region-snapshots only.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.kms_key_name: Option<String>Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot will be re-encrypted using the primary version of the snapshot’s current KMS key.
The KMS key can be provided in the following formats:
- projects/project_id/locations/region/keyRings/region/cryptoKeys/keyImplementations§
Source§impl RegionSnapshotUpdateKmsKeyRequest
impl RegionSnapshotUpdateKmsKeyRequest
Sourcepub fn set_kms_key_name<T>(self, v: T) -> Self
pub fn set_kms_key_name<T>(self, v: T) -> Self
Sets the value of kms_key_name.
§Example
ⓘ
let x = RegionSnapshotUpdateKmsKeyRequest::new().set_kms_key_name("example");Sourcepub fn set_or_clear_kms_key_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kms_key_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of kms_key_name.
§Example
ⓘ
let x = RegionSnapshotUpdateKmsKeyRequest::new().set_or_clear_kms_key_name(Some("example"));
let x = RegionSnapshotUpdateKmsKeyRequest::new().set_or_clear_kms_key_name(None::<String>);Trait Implementations§
Source§impl Clone for RegionSnapshotUpdateKmsKeyRequest
impl Clone for RegionSnapshotUpdateKmsKeyRequest
Source§fn clone(&self) -> RegionSnapshotUpdateKmsKeyRequest
fn clone(&self) -> RegionSnapshotUpdateKmsKeyRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RegionSnapshotUpdateKmsKeyRequest
impl Default for RegionSnapshotUpdateKmsKeyRequest
Source§fn default() -> RegionSnapshotUpdateKmsKeyRequest
fn default() -> RegionSnapshotUpdateKmsKeyRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for RegionSnapshotUpdateKmsKeyRequest
impl PartialEq for RegionSnapshotUpdateKmsKeyRequest
Source§fn eq(&self, other: &RegionSnapshotUpdateKmsKeyRequest) -> bool
fn eq(&self, other: &RegionSnapshotUpdateKmsKeyRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RegionSnapshotUpdateKmsKeyRequest
Auto Trait Implementations§
impl Freeze for RegionSnapshotUpdateKmsKeyRequest
impl RefUnwindSafe for RegionSnapshotUpdateKmsKeyRequest
impl Send for RegionSnapshotUpdateKmsKeyRequest
impl Sync for RegionSnapshotUpdateKmsKeyRequest
impl Unpin for RegionSnapshotUpdateKmsKeyRequest
impl UnsafeUnpin for RegionSnapshotUpdateKmsKeyRequest
impl UnwindSafe for RegionSnapshotUpdateKmsKeyRequest
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