Struct hyper::header::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<&'static str>

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

impl FromStr for Basic

type Err = ()

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

Derived Implementations

impl Debug 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)