Trait poem_openapi::auth::BearerAuthorization
source · pub trait BearerAuthorization: Sized {
// Required method
fn from_request(req: &Request) -> Result<Self>;
}
Expand description
Represents a bearer authorization extractor.
Required Methods§
sourcefn from_request(req: &Request) -> Result<Self>
fn from_request(req: &Request) -> Result<Self>
Extract from the HTTP request.