Trait Authorizer

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

    // Required methods
    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,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn project_id(&self) -> &str

Source

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, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§