pub trait Bucket {
// Required methods
fn put_bucket<'life0, 'life1, 'async_trait>(
&'life0 self,
acl_header: Option<&'life1 AclHeader>,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_bucket<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_objects<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
prefix: &'life1 str,
delimiter: &'life2 str,
encoding_type: &'life3 str,
marker: &'life4 str,
max_keys: i32,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait;
fn check_bucket<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn put_bucket_acl<'life0, 'life1, 'async_trait>(
&'life0 self,
acl_header: &'life1 AclHeader,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Required Methods§
Sourcefn put_bucket<'life0, 'life1, 'async_trait>(
&'life0 self,
acl_header: Option<&'life1 AclHeader>,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put_bucket<'life0, 'life1, 'async_trait>(
&'life0 self,
acl_header: Option<&'life1 AclHeader>,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
在指定账号下创建一个存储桶 创建存储桶时,如果没有指定访问权限,则默认使用私有读写(private)权限。
Sourcefn delete_bucket<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_bucket<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
用于删除指定的存储桶。该 API 的请求者需要对存储桶有写入权限。
Sourcefn list_objects<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
prefix: &'life1 str,
delimiter: &'life2 str,
encoding_type: &'life3 str,
marker: &'life4 str,
max_keys: i32,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn list_objects<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
prefix: &'life1 str,
delimiter: &'life2 str,
encoding_type: &'life3 str,
marker: &'life4 str,
max_keys: i32,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
可以列出该存储桶内的部分或者全部对象。该 API 的请求者需要对存储桶有读取权限。