#[non_exhaustive]pub struct RewriteObject {
pub kms_key: Option<String>,
/* private fields */
}Expand description
Describes options for object rewrite.
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: Option<String>Required. Resource name of the Cloud KMS key that will be used to encrypt the object. The Cloud KMS key must be located in same location as the object. Refer to https://cloud.google.com/storage/docs/encryption/using-customer-managed-keys#add-object-key for additional documentation. Format: projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key} For example: “projects/123456/locations/us-central1/keyRings/my-keyring/cryptoKeys/my-key”. The object will be rewritten and set with the specified KMS key.
Implementations§
Source§impl RewriteObject
impl RewriteObject
pub fn new() -> Self
Sourcepub fn set_kms_key<T>(self, v: T) -> Self
pub fn set_kms_key<T>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for RewriteObject
impl Clone for RewriteObject
Source§fn clone(&self) -> RewriteObject
fn clone(&self) -> RewriteObject
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 RewriteObject
impl Debug for RewriteObject
Source§impl Default for RewriteObject
impl Default for RewriteObject
Source§fn default() -> RewriteObject
fn default() -> RewriteObject
Returns the “default value” for a type. Read more
Source§impl Message for RewriteObject
impl Message for RewriteObject
Source§impl PartialEq for RewriteObject
impl PartialEq for RewriteObject
impl StructuralPartialEq for RewriteObject
Auto Trait Implementations§
impl Freeze for RewriteObject
impl RefUnwindSafe for RewriteObject
impl Send for RewriteObject
impl Sync for RewriteObject
impl Unpin for RewriteObject
impl UnwindSafe for RewriteObject
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