pub trait UploadTokenProviderExt: UploadTokenProvider {
// Provided methods
fn bucket_name(&self, opts: GetPolicyOptions) -> ParseResult<BucketName> { ... }
fn async_bucket_name(
&self,
opts: GetPolicyOptions,
) -> Pin<Box<dyn Future<Output = ParseResult<BucketName>> + Send + '_>> { ... }
}
Expand description
上传凭证获取接口扩展
提供存储空间名称解析方法
Provided Methods§
Sourcefn bucket_name(&self, opts: GetPolicyOptions) -> ParseResult<BucketName>
fn bucket_name(&self, opts: GetPolicyOptions) -> ParseResult<BucketName>
获取上传凭证中的存储空间名称
该方法的异步版本为 Self::async_bucket_name
。
Sourcefn async_bucket_name(
&self,
opts: GetPolicyOptions,
) -> Pin<Box<dyn Future<Output = ParseResult<BucketName>> + Send + '_>>
Available on crate feature async
only.
fn async_bucket_name( &self, opts: GetPolicyOptions, ) -> Pin<Box<dyn Future<Output = ParseResult<BucketName>> + Send + '_>>
async
only.异步获取上传凭证中的存储空间名称