pub trait UploadTokenProviderExt: UploadTokenProvider {
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 + '_>>
fn async_bucket_name(
&self,
opts: GetPolicyOptions
) -> Pin<Box<dyn Future<Output = ParseResult<BucketName>> + Send + '_>>
Available on crate feature
async
only.异步获取上传凭证中的存储空间名称