Trait http_signature_normalization_reqwest::Sign

source ·
pub trait Sign {
    // Required methods
    fn authorization_signature<'life0, 'async_trait, F, E, K, S>(
        self,
        config: &'life0 Config<S>,
        key_id: K,
        f: F
    ) -> Pin<Box<dyn Future<Output = Result<Request, E>> + Send + 'async_trait>>
       where Self: Sized + 'async_trait,
             F: FnOnce(&str) -> Result<String, E> + Send + 'static + 'async_trait,
             E: From<SignError> + From<Error> + Send + 'static + 'async_trait,
             K: Display + Send + 'async_trait,
             S: Spawn + Send + Sync + 'async_trait,
             'life0: 'async_trait;
    fn signature<'life0, 'async_trait, F, E, K, S>(
        self,
        config: &'life0 Config<S>,
        key_id: K,
        f: F
    ) -> Pin<Box<dyn Future<Output = Result<Request, E>> + Send + 'async_trait>>
       where Self: Sized + 'async_trait,
             F: FnOnce(&str) -> Result<String, E> + Send + 'static + 'async_trait,
             E: From<SignError> + From<Error> + Send + 'static + 'async_trait,
             K: Display + Send + 'async_trait,
             S: Spawn + Send + Sync + 'async_trait,
             'life0: 'async_trait;
}
Expand description

A trait implemented by the reqwest RequestBuilder type to add an HTTP Signature to the request

Required Methods§

source

fn authorization_signature<'life0, 'async_trait, F, E, K, S>( self, config: &'life0 Config<S>, key_id: K, f: F ) -> Pin<Box<dyn Future<Output = Result<Request, E>> + Send + 'async_trait>>
where Self: Sized + 'async_trait, F: FnOnce(&str) -> Result<String, E> + Send + 'static + 'async_trait, E: From<SignError> + From<Error> + Send + 'static + 'async_trait, K: Display + Send + 'async_trait, S: Spawn + Send + Sync + 'async_trait, 'life0: 'async_trait,

Add an Authorization Signature to the request

source

fn signature<'life0, 'async_trait, F, E, K, S>( self, config: &'life0 Config<S>, key_id: K, f: F ) -> Pin<Box<dyn Future<Output = Result<Request, E>> + Send + 'async_trait>>
where Self: Sized + 'async_trait, F: FnOnce(&str) -> Result<String, E> + Send + 'static + 'async_trait, E: From<SignError> + From<Error> + Send + 'static + 'async_trait, K: Display + Send + 'async_trait, S: Spawn + Send + Sync + 'async_trait, 'life0: 'async_trait,

Add a Signature to the request

Implementations on Foreign Types§

source§

impl Sign for RequestBuilder

source§

fn authorization_signature<'life0, 'async_trait, F, E, K, S>( self, config: &'life0 Config<S>, key_id: K, f: F ) -> Pin<Box<dyn Future<Output = Result<Request, E>> + Send + 'async_trait>>
where F: FnOnce(&str) -> Result<String, E> + Send + 'static + 'async_trait, E: From<SignError> + From<Error> + Send + 'static + 'async_trait, K: Display + Send + 'async_trait, S: Spawn + Send + Sync + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

source§

fn signature<'life0, 'async_trait, F, E, K, S>( self, config: &'life0 Config<S>, key_id: K, f: F ) -> Pin<Box<dyn Future<Output = Result<Request, E>> + Send + 'async_trait>>
where F: FnOnce(&str) -> Result<String, E> + Send + 'static + 'async_trait, E: From<SignError> + From<Error> + Send + 'static + 'async_trait, K: Display + Send + 'async_trait, S: Spawn + Send + Sync + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Implementors§