pub trait BasicAuthorization: Sized {
// Required method
fn from_request(req: &Request) -> Result<Self>;
}
Expand description
Represents a basic authorization extractor.
Required Methods§
Sourcefn from_request(req: &Request) -> Result<Self>
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.