Trait AuthenticatorTrait

Source
pub trait AuthenticatorTrait {
    // Required method
    fn authorize<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: &'life1 mut Request,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

trait to authorize reqwest::Request, might add more authorization method in the future

Required Methods§

Source

fn authorize<'life0, 'life1, 'async_trait>( &'life0 self, req: &'life1 mut Request, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§