Trait apisdk::ApiAuthenticator
source · pub trait ApiAuthenticator: TokenGenerator {
// Provided methods
fn type_name(&self) -> &str { ... }
fn get_carrier(&self) -> &Carrier { ... }
fn authenticate<'life0, 'life1, 'async_trait>(
&'life0 self,
req: Request,
_extensions: &'life1 Extensions
) -> Pin<Box<dyn Future<Output = Result<Request, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}
Expand description
This trait is used to authenticate request
Provided Methods§
sourcefn get_carrier(&self) -> &Carrier
fn get_carrier(&self) -> &Carrier
Get Carrier
sourcefn authenticate<'life0, 'life1, 'async_trait>(
&'life0 self,
req: Request,
_extensions: &'life1 Extensions
) -> Pin<Box<dyn Future<Output = Result<Request, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn authenticate<'life0, 'life1, 'async_trait>(
&'life0 self,
req: Request,
_extensions: &'life1 Extensions
) -> Pin<Box<dyn Future<Output = Result<Request, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Authenticate request
- req: HTTP request
- extensions: Extensions
Trait Implementations§
source§impl ApiAuthenticator for Box<dyn ApiAuthenticator>
impl ApiAuthenticator for Box<dyn ApiAuthenticator>
source§fn get_carrier(&self) -> &Carrier
fn get_carrier(&self) -> &Carrier
Get
Carrier