Struct iron::headers::Bearer [] [src]

pub struct Bearer {
    pub token: String,
}

Token holder for Bearer Authentication, most often seen with oauth

Fields

token

Actual bearer token as a string

Trait Implementations

impl Scheme for Bearer

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

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

impl FromStr for Bearer

type Err = Error

fn from_str(s: &str) -> Result<Bearer, Error>

Derived Implementations

impl Debug for Bearer

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl PartialEq<Bearer> for Bearer

fn eq(&self, __arg_0: &Bearer) -> bool

fn ne(&self, __arg_0: &Bearer) -> bool

impl Clone for Bearer

fn clone(&self) -> Bearer

fn clone_from(&mut self, source: &Self)