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.

Object Safety§

This trait is not object safe.

Implementors§