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

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

An Authorization scheme to be used in the header.

Required methods

fn scheme() -> Option<&'static str>

An optional Scheme name.

Will be replaced with an associated constant once available.

fn fmt_scheme(&self, &mut Formatter) -> Result<(), Error>

Format the Scheme data into a header value.

Loading content...

Implementations on Foreign Types

impl Scheme for String[src]

Loading content...


impl Scheme for Basic[src]

impl Scheme for Bearer[src]

Loading content...