#[non_exhaustive]pub struct UpdateBucketRequest {
pub name: String,
pub bucket: Option<LogBucket>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
The parameters to UpdateBucket.
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.name: StringRequired. The full resource name of the bucket to update.
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"For example:
"projects/my-project/locations/global/buckets/my-bucket"
bucket: Option<LogBucket>Required. The updated bucket.
update_mask: Option<FieldMask>Required. Field mask that specifies the fields in bucket that need an
update. A bucket field will be overwritten if, and only if, it is in the
update mask. name and output only fields cannot be updated.
For a detailed FieldMask definition, see:
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
For example: updateMask=retention_days
Implementations§
Source§impl UpdateBucketRequest
impl UpdateBucketRequest
pub fn new() -> Self
Sourcepub fn set_bucket<T>(self, v: T) -> Self
pub fn set_bucket<T>(self, v: T) -> Self
Sets the value of bucket.
Sourcepub fn set_or_clear_bucket<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_bucket<T>(self, v: Option<T>) -> Self
Sets or clears the value of bucket.
Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
Trait Implementations§
Source§impl Clone for UpdateBucketRequest
impl Clone for UpdateBucketRequest
Source§fn clone(&self) -> UpdateBucketRequest
fn clone(&self) -> UpdateBucketRequest
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 UpdateBucketRequest
impl Debug for UpdateBucketRequest
Source§impl Default for UpdateBucketRequest
impl Default for UpdateBucketRequest
Source§fn default() -> UpdateBucketRequest
fn default() -> UpdateBucketRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateBucketRequest
impl Message for UpdateBucketRequest
Source§impl PartialEq for UpdateBucketRequest
impl PartialEq for UpdateBucketRequest
impl StructuralPartialEq for UpdateBucketRequest
Auto Trait Implementations§
impl Freeze for UpdateBucketRequest
impl RefUnwindSafe for UpdateBucketRequest
impl Send for UpdateBucketRequest
impl Sync for UpdateBucketRequest
impl Unpin for UpdateBucketRequest
impl UnwindSafe for UpdateBucketRequest
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