#[non_exhaustive]pub struct CreateBucketRequest {
pub parent: String,
pub bucket_id: String,
pub bucket: Option<LogBucket>,
/* private fields */
}Expand description
The parameters to CreateBucket.
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 resource in which to create the log bucket:
"projects/[PROJECT_ID]/locations/[LOCATION_ID]"For example:
"projects/my-project/locations/global"
bucket_id: StringRequired. A client-assigned identifier such as "my-bucket". Identifiers
are limited to 100 characters and can include only letters, digits,
underscores, hyphens, and periods.
bucket: Option<LogBucket>Required. The new bucket. The region specified in the new bucket must be compliant with any Location Restriction Org Policy. The name field in the bucket is ignored.
Implementations§
Source§impl CreateBucketRequest
impl CreateBucketRequest
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
Sets the value of parent.
Sourcepub fn set_bucket_id<T: Into<String>>(self, v: T) -> Self
pub fn set_bucket_id<T: Into<String>>(self, v: T) -> Self
Sets the value of bucket_id.
Sourcepub fn set_bucket<T>(self, v: T) -> Self
pub fn set_bucket<T>(self, v: T) -> Self
Sets the value of bucket.
Trait Implementations§
Source§impl Clone for CreateBucketRequest
impl Clone for CreateBucketRequest
Source§fn clone(&self) -> CreateBucketRequest
fn clone(&self) -> CreateBucketRequest
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 CreateBucketRequest
impl Debug for CreateBucketRequest
Source§impl Default for CreateBucketRequest
impl Default for CreateBucketRequest
Source§fn default() -> CreateBucketRequest
fn default() -> CreateBucketRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateBucketRequest
impl Message for CreateBucketRequest
Source§impl PartialEq for CreateBucketRequest
impl PartialEq for CreateBucketRequest
impl StructuralPartialEq for CreateBucketRequest
Auto Trait Implementations§
impl Freeze for CreateBucketRequest
impl RefUnwindSafe for CreateBucketRequest
impl Send for CreateBucketRequest
impl Sync for CreateBucketRequest
impl Unpin for CreateBucketRequest
impl UnwindSafe for CreateBucketRequest
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