pub struct BucketClient { /* private fields */ }
Expand description
存储桶操作客户端
Implementations§
Source§impl BucketClient
impl BucketClient
Sourcepub async fn delete_bucket(&self) -> Result<()>
pub async fn delete_bucket(&self) -> Result<()>
删除存储桶
Sourcepub async fn bucket_exists(&self) -> Result<bool>
pub async fn bucket_exists(&self) -> Result<bool>
检查存储桶是否存在
Sourcepub async fn get_bucket_location(&self) -> Result<String>
pub async fn get_bucket_location(&self) -> Result<String>
获取存储桶位置
Sourcepub async fn list_objects(
&self,
options: Option<ListObjectsOptions>,
) -> Result<ListObjectsResponse>
pub async fn list_objects( &self, options: Option<ListObjectsOptions>, ) -> Result<ListObjectsResponse>
列出存储桶中的对象
Sourcepub async fn list_objects_v2(
&self,
options: Option<ListObjectsV2Options>,
) -> Result<ListObjectsV2Response>
pub async fn list_objects_v2( &self, options: Option<ListObjectsV2Options>, ) -> Result<ListObjectsV2Response>
列出存储桶中的对象(V2版本)
Sourcepub async fn get_bucket_acl(&self) -> Result<BucketAclResponse>
pub async fn get_bucket_acl(&self) -> Result<BucketAclResponse>
获取存储桶ACL
Sourcepub async fn put_bucket_acl(&self, acl: BucketAcl) -> Result<()>
pub async fn put_bucket_acl(&self, acl: BucketAcl) -> Result<()>
设置存储桶ACL
Sourcepub async fn get_bucket_versioning(&self) -> Result<VersioningResponse>
pub async fn get_bucket_versioning(&self) -> Result<VersioningResponse>
获取存储桶版本控制状态
Trait Implementations§
Source§impl Clone for BucketClient
impl Clone for BucketClient
Source§fn clone(&self) -> BucketClient
fn clone(&self) -> BucketClient
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 moreAuto Trait Implementations§
impl Freeze for BucketClient
impl !RefUnwindSafe for BucketClient
impl Send for BucketClient
impl Sync for BucketClient
impl Unpin for BucketClient
impl !UnwindSafe for BucketClient
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