Struct edge::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<(), Error>

impl FromStr for Basic

type Err = Error

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

Derived Implementations

impl Debug for Basic

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

impl PartialEq<Basic> 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)