pub struct StaticUploadTokenProvider { /* private fields */ }Expand description
静态上传凭证提供者
根据已经被生成好的上传凭证字符串生成上传凭证获取接口的实例,可以将上传凭证解析为 Access Token 和上传策略
Implementations
Trait Implementations
sourceimpl Clone for StaticUploadTokenProvider
impl Clone for StaticUploadTokenProvider
sourcefn clone(&self) -> StaticUploadTokenProvider
fn clone(&self) -> StaticUploadTokenProvider
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for StaticUploadTokenProvider
impl Debug for StaticUploadTokenProvider
sourceimpl Display for StaticUploadTokenProvider
impl Display for StaticUploadTokenProvider
sourceimpl<T: Into<String>> From<T> for StaticUploadTokenProvider
impl<T: Into<String>> From<T> for StaticUploadTokenProvider
sourceimpl FromStr for StaticUploadTokenProvider
impl FromStr for StaticUploadTokenProvider
sourceimpl UploadTokenProvider for StaticUploadTokenProvider
impl UploadTokenProvider for StaticUploadTokenProvider
sourcefn access_key(&self, _opts: GetAccessKeyOptions) -> ParseResult<GotAccessKey>
fn access_key(&self, _opts: GetAccessKeyOptions) -> ParseResult<GotAccessKey>
从上传凭证内获取 AccessKey Read more
sourcefn policy(&self, _opts: GetPolicyOptions) -> ParseResult<GotUploadPolicy<'_>>
fn policy(&self, _opts: GetPolicyOptions) -> ParseResult<GotUploadPolicy<'_>>
从上传凭证内获取上传策略 Read more
sourcefn to_token_string(&self, _opts: ToStringOptions) -> ToStringResult<Cow<'_, str>>
fn to_token_string(&self, _opts: ToStringOptions) -> ToStringResult<Cow<'_, str>>
生成字符串 Read more
sourcefn 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
sourcefn 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.异步从上传凭证内获取上传策略
sourcefn 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 RefUnwindSafe for StaticUploadTokenProvider
impl Send for StaticUploadTokenProvider
impl Sync for StaticUploadTokenProvider
impl Unpin for StaticUploadTokenProvider
impl UnwindSafe for StaticUploadTokenProvider
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more