pub struct StaticUploadTokenProvider { /* private fields */ }
Expand description
静态上传凭证提供者
根据已经被生成好的上传凭证字符串生成上传凭证获取接口的实例,可以将上传凭证解析为 Access Token 和上传策略
Implementations§
Trait Implementations§
Source§impl Clone for StaticUploadTokenProvider
impl Clone for StaticUploadTokenProvider
Source§fn clone(&self) -> StaticUploadTokenProvider
fn clone(&self) -> StaticUploadTokenProvider
Returns a copy 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 moreSource§impl Debug for StaticUploadTokenProvider
impl Debug for StaticUploadTokenProvider
Source§impl Display for StaticUploadTokenProvider
impl Display for StaticUploadTokenProvider
Source§impl FromStr for StaticUploadTokenProvider
impl FromStr for StaticUploadTokenProvider
Source§impl UploadTokenProvider for StaticUploadTokenProvider
impl UploadTokenProvider for StaticUploadTokenProvider
Source§fn access_key(&self, _opts: GetAccessKeyOptions) -> ParseResult<GotAccessKey>
fn access_key(&self, _opts: GetAccessKeyOptions) -> ParseResult<GotAccessKey>
从上传凭证内获取 AccessKey Read more
Source§fn policy(&self, _opts: GetPolicyOptions) -> ParseResult<GotUploadPolicy<'_>>
fn policy(&self, _opts: GetPolicyOptions) -> ParseResult<GotUploadPolicy<'_>>
从上传凭证内获取上传策略 Read more
Source§fn to_token_string(
&self,
_opts: ToStringOptions,
) -> ToStringResult<Cow<'_, str>>
fn to_token_string( &self, _opts: ToStringOptions, ) -> ToStringResult<Cow<'_, str>>
生成字符串 Read more
Source§fn async_access_key(
&self,
opts: GetAccessKeyOptions,
) -> Pin<Box<dyn Future<Output = ParseResult<GotAccessKey>> + Send + '_>>
fn async_access_key( &self, opts: GetAccessKeyOptions, ) -> Pin<Box<dyn Future<Output = ParseResult<GotAccessKey>> + Send + '_>>
Available on crate feature
async
only.异步从上传凭证内获取 AccessKey
Source§fn async_policy(
&self,
opts: GetPolicyOptions,
) -> Pin<Box<dyn Future<Output = ParseResult<GotUploadPolicy<'_>>> + Send + '_>>
fn async_policy( &self, opts: GetPolicyOptions, ) -> Pin<Box<dyn Future<Output = ParseResult<GotUploadPolicy<'_>>> + Send + '_>>
Available on crate feature
async
only.异步从上传凭证内获取上传策略
Source§fn async_to_token_string(
&self,
opts: ToStringOptions,
) -> Pin<Box<dyn Future<Output = ToStringResult<Cow<'_, str>>> + Send + '_>>
fn async_to_token_string( &self, opts: ToStringOptions, ) -> Pin<Box<dyn Future<Output = ToStringResult<Cow<'_, str>>> + Send + '_>>
Available on crate feature
async
only.异步生成字符串
Auto Trait Implementations§
impl !Freeze for StaticUploadTokenProvider
impl RefUnwindSafe for StaticUploadTokenProvider
impl Send for StaticUploadTokenProvider
impl Sync for StaticUploadTokenProvider
impl Unpin for StaticUploadTokenProvider
impl UnwindSafe for StaticUploadTokenProvider
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> UploadTokenProviderExt for Twhere
T: UploadTokenProvider,
impl<T> UploadTokenProviderExt for Twhere
T: UploadTokenProvider,
Source§fn bucket_name(&self, opts: GetPolicyOptions) -> ParseResult<BucketName>
fn bucket_name(&self, opts: GetPolicyOptions) -> ParseResult<BucketName>
获取上传凭证中的存储空间名称 Read more
Source§fn 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.异步获取上传凭证中的存储空间名称