poem_openapi::auth

Trait BearerAuthorization

Source
pub trait BearerAuthorization: Sized {
    // Required method
    fn from_request(req: &Request) -> Result<Self>;
}
Expand description

Represents a bearer authorization extractor.

Required Methods§

Source

fn from_request(req: &Request) -> Result<Self>

Extract from the HTTP request.

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§