pub trait Scheme:
FromStr
+ Debug
+ Clone
+ Send
+ Sync {
// Required methods
fn scheme() -> Option<&'static str>;
fn fmt_scheme(&self, _: &mut Formatter<'_>) -> Result;
}
Expand description
An Authorization scheme to be used in the header.
Required Methods§
Sourcefn scheme() -> Option<&'static str>
fn scheme() -> Option<&'static str>
An optional Scheme name.
Will be replaced with an associated constant once available.
Sourcefn fmt_scheme(&self, _: &mut Formatter<'_>) -> Result
fn fmt_scheme(&self, _: &mut Formatter<'_>) -> Result
Format the Scheme data into a header value.
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.