pub struct PutBucket { /* private fields */ }Expand description
Call the PutBucket interface to create a bucket
An Alibaba Cloud account can create up to 100 buckets in a single region
See the Alibaba Cloud documentation for details
Implementations§
Source§impl PutBucket
impl PutBucket
Sourcepub fn set_group_id(self, group_id: impl ToString) -> Self
pub fn set_group_id(self, group_id: impl ToString) -> Self
Specify the resource group ID
If this header is included with a resource group ID, the created bucket belongs to that group. When the ID is rg-default-id, the bucket belongs to the default group.
If the header is omitted, the bucket belongs to the default resource group.
Sourcepub fn set_storage_class(self, storage_class: StorageClass) -> Self
pub fn set_storage_class(self, storage_class: StorageClass) -> Self
Set the bucket storage class
Sourcepub fn set_redundancy_type(self, redundancy_type: DataRedundancyType) -> Self
pub fn set_redundancy_type(self, redundancy_type: DataRedundancyType) -> Self
Set the bucket data redundancy type
Auto Trait Implementations§
impl Freeze for PutBucket
impl !RefUnwindSafe for PutBucket
impl Send for PutBucket
impl Sync for PutBucket
impl Unpin for PutBucket
impl !UnwindSafe for PutBucket
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