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 = Error

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

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