Struct reqwest::header::Basic
[−]
[src]
pub struct Basic {
pub username: String,
pub password: Option<String>,
}Credential holder for Basic Authentication
Fields
username: String
The username as a possibly empty string
password: Option<String>
The password. None if the : delimiter character was not
part of the parsed input.
Trait Implementations
impl Debug for Basic[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Scheme for Basic[src]
fn scheme() -> Option<&'static str>
An optional Scheme name. Read more
fn fmt_scheme(&self, f: &mut Formatter) -> Result<(), Error>
Format the Scheme data into a header value.