Trait rocket::http::hyper::header::Scheme[][src]

pub trait Scheme: Clone + Send + Sync + Debug + FromStr {
    pub fn scheme() -> Option<&'static str>;
pub fn fmt_scheme(&self, &mut Formatter<'_>) -> Result<(), Error>; }

An Authorization scheme to be used in the header.

Required methods

pub fn scheme() -> Option<&'static str>[src]

An optional Scheme name.

Will be replaced with an associated constant once available.

pub fn fmt_scheme(&self, &mut Formatter<'_>) -> Result<(), Error>[src]

Format the Scheme data into a header value.

Loading content...

Implementations on Foreign Types

impl Scheme for String[src]

Loading content...

Implementors

impl Scheme for Basic[src]

impl Scheme for Bearer[src]

Loading content...