poem_openapi::auth

Trait BasicAuthorization

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

Represents a basic 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§