Struct hyper::header::common::authorization::Basic [-]  [+] [src]

pub struct Basic {
    pub username: String,
    pub password: Option<String>,
}

Credential holder for Basic Authentication

Fields

username

The username as a possibly empty string

password

The password. None if the : delimiter character was not part of the parsed input.

Trait Implementations

impl Scheme for Basic

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

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

impl FromStr for Basic

fn from_str(s: &str) -> Option<Basic>

Derived Implementations

impl Show for Basic

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

impl PartialEq for Basic

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

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

impl Clone for Basic

fn clone(&self) -> Basic

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