#[non_exhaustive]pub struct UpdateBucketRequest {
pub bucket: Option<Bucket>,
pub if_metageneration_match: Option<i64>,
pub if_metageneration_not_match: Option<i64>,
pub predefined_acl: String,
pub predefined_default_object_acl: String,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
Request for UpdateBucket method.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bucket: Option<Bucket>Required. The bucket to update.
The bucket’s name field is used to identify the bucket.
if_metageneration_match: Option<i64>If set, the request modifies the bucket if its metageneration matches this value.
if_metageneration_not_match: Option<i64>If set, the request modifies the bucket if its metageneration doesn’t match this value.
predefined_acl: StringOptional. Apply a predefined set of access controls to this bucket.
Valid values are authenticatedRead, private, projectPrivate,
publicRead, or publicReadWrite.
predefined_default_object_acl: StringOptional. Apply a predefined set of default object access controls to this
bucket. Valid values are authenticatedRead, bucketOwnerFullControl,
bucketOwnerRead, private, projectPrivate, or publicRead.
update_mask: Option<FieldMask>Required. List of fields to be updated.
To specify ALL fields, equivalent to the JSON API’s “update” function,
specify a single field with the value *. Note: not recommended. If a new
field is introduced at a later time, an older client updating with the *
might accidentally reset the new field’s value.
Not specifying any fields is an error.
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
Sourcepub fn set_or_clear_bucket<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_bucket<T>(self, v: Option<T>) -> Self
Sourcepub fn set_if_metageneration_match<T>(self, v: T) -> Self
pub fn set_if_metageneration_match<T>(self, v: T) -> Self
Sets the value of if_metageneration_match.
§Example
let x = UpdateBucketRequest::new().set_if_metageneration_match(42);Sourcepub fn set_or_clear_if_metageneration_match<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_if_metageneration_match<T>(self, v: Option<T>) -> Self
Sets or clears the value of if_metageneration_match.
§Example
let x = UpdateBucketRequest::new().set_or_clear_if_metageneration_match(Some(42));
let x = UpdateBucketRequest::new().set_or_clear_if_metageneration_match(None::<i32>);Sourcepub fn set_if_metageneration_not_match<T>(self, v: T) -> Self
pub fn set_if_metageneration_not_match<T>(self, v: T) -> Self
Sets the value of if_metageneration_not_match.
§Example
let x = UpdateBucketRequest::new().set_if_metageneration_not_match(42);Sourcepub fn set_or_clear_if_metageneration_not_match<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_if_metageneration_not_match<T>(self, v: Option<T>) -> Self
Sets or clears the value of if_metageneration_not_match.
§Example
let x = UpdateBucketRequest::new().set_or_clear_if_metageneration_not_match(Some(42));
let x = UpdateBucketRequest::new().set_or_clear_if_metageneration_not_match(None::<i32>);Sourcepub fn set_predefined_acl<T: Into<String>>(self, v: T) -> Self
pub fn set_predefined_acl<T: Into<String>>(self, v: T) -> Self
Sets the value of predefined_acl.
§Example
let x = UpdateBucketRequest::new().set_predefined_acl("example");Sourcepub fn set_predefined_default_object_acl<T: Into<String>>(self, v: T) -> Self
pub fn set_predefined_default_object_acl<T: Into<String>>(self, v: T) -> Self
Sets the value of predefined_default_object_acl.
§Example
let x = UpdateBucketRequest::new().set_predefined_default_object_acl("example");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.
§Example
use wkt::FieldMask;
let x = UpdateBucketRequest::new().set_update_mask(FieldMask::default()/* use setters */);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.
§Example
use wkt::FieldMask;
let x = UpdateBucketRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateBucketRequest::new().set_or_clear_update_mask(None::<FieldMask>);Trait Implementations§
Source§impl Clone for UpdateBucketRequest
impl Clone for UpdateBucketRequest
Source§fn clone(&self) -> UpdateBucketRequest
fn clone(&self) -> UpdateBucketRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request