Trait oxide_auth_async::primitives::Authorizer
source · pub trait Authorizer {
// Required methods
fn authorize<'life0, 'async_trait>(
&'life0 mut self,
__arg1: Grant
) -> Pin<Box<dyn Future<Output = Result<String, ()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn extract<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Option<Grant>, ()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}