AuthParam

Trait AuthParam 

Source
pub trait AuthParam<T: Serialize + DeserializeOwned + FromBase64> {
    // Required methods
    fn config() -> Arc<AuthConfig<T>>;
    fn authenticated<'life0, 'life1, 'async_trait>(
        req: &'life0 mut Parts,
        arg: &'life1 T,
    ) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn config() -> Arc<AuthConfig<T>>

Source

fn authenticated<'life0, 'life1, 'async_trait>( req: &'life0 mut Parts, arg: &'life1 T, ) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: '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§