Trait apisdk::TokenGenerator
source · pub trait TokenGenerator: 'static + Send + Sync {
// Required method
fn generate_token<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 Request
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
This trait is used to generate token