pub trait Authorizer: Sync + Send + 'static {
    type Error: Error + Debug + Send + Sync;

    fn project_id(&self) -> &str;
    fn authorize<'life0, 'life1, 'life2, 'life3, 'async_trait, T>(
        &'life0 self,
        request: &'life1 mut Request<T>,
        scopes: &'life2 [&'life3 str]
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
   where
        T: 'async_trait + Send + Sync,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; }

Required Associated Types

Required Methods

Implementors