pub trait Scheme:
TryIntoHeaderValue
+ Debug
+ Display
+ Clone
+ Send
+ Sync {
// Required method
fn parse(header: &HeaderValue) -> Result<Self, ParseError>;
}
Expand description
Authentication scheme for Authorization
header.
Required Methods§
Sourcefn parse(header: &HeaderValue) -> Result<Self, ParseError>
fn parse(header: &HeaderValue) -> Result<Self, ParseError>
Try to parse an authentication scheme from the Authorization
header.
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.