rama::http::layer::auth::require_authorization

Trait Authorizer

pub trait Authorizer: AuthorizerSeal {
    type ResBody: Default + Send + 'static;
}
Expand description

Trait for authorizing requests.

Required Associated Types§

type ResBody: Default + Send + 'static

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.

Implementations on Foreign Types§

§

impl<T> Authorizer for Arc<T>
where T: Authorizer,

§

impl<T> Authorizer for Vec<T>
where T: Authorizer,

§

impl<T, const N: usize> Authorizer for [T; N]
where T: Authorizer,

Implementors§

§

impl<ResBody> Authorizer for Basic<ResBody>
where ResBody: Default + Send + 'static,

§

type ResBody = ResBody

§

impl<ResBody> Authorizer for Bearer<ResBody>
where ResBody: Default + Send + 'static,

§

type ResBody = ResBody