Trait qiniu_sdk::prelude::UploadTokenProviderExt
source · pub trait UploadTokenProviderExt: UploadTokenProvider {
fn bucket_name(
&self,
opts: GetPolicyOptions
) -> Result<BucketName, ParseError> { ... }
fn async_bucket_name(
&self,
opts: GetPolicyOptions
) -> Pin<Box<dyn Future<Output = Result<BucketName, ParseError>> + Send, Global>> { ... }
}
Expand description
上传凭证获取接口扩展
提供存储空间名称解析方法
Provided Methods
sourcefn bucket_name(&self, opts: GetPolicyOptions) -> Result<BucketName, ParseError>
fn bucket_name(&self, opts: GetPolicyOptions) -> Result<BucketName, ParseError>
获取上传凭证中的存储空间名称
该方法的异步版本为 Self::async_bucket_name
。
sourcefn async_bucket_name(
&self,
opts: GetPolicyOptions
) -> Pin<Box<dyn Future<Output = Result<BucketName, ParseError>> + Send, Global>>
fn async_bucket_name(
&self,
opts: GetPolicyOptions
) -> Pin<Box<dyn Future<Output = Result<BucketName, ParseError>> + Send, Global>>
异步获取上传凭证中的存储空间名称