pub trait AuthorizationProvider: DynClone + Debug + Sync + Send {
    fn sign(&self, request: &mut SyncRequest<'_>) -> AuthorizationResult<()>;
    fn async_sign<'a>(
        &'a self,
        request: &'a mut AsyncRequest<'_>
    ) -> BoxFuture<'a, AuthorizationResult<()>>; }
Expand description

七牛鉴权签名接口

对 HTTP 请求进行签名

Required Methods§

使用指定的鉴权方式对 HTTP 请求进行签名

该方法的异步版本为 Self::async_sign

Available on crate feature async only.

使用指定的鉴权方式对异步 HTTP 请求进行签名

Trait Implementations§

Converts this type into a shared reference of the (usually inferred) input type.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Implementations on Foreign Types§

Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.

Implementors§