Struct jsonrpc_client_http::header::Basic [−][src]
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. Note: A compliant client MUST
always send a password (which may be the empty string).
Trait Implementations
impl PartialEq<Basic> for Basic
[src]
impl PartialEq<Basic> for Basic
fn eq(&self, other: &Basic) -> bool
[src]
fn eq(&self, other: &Basic) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Basic) -> bool
[src]
fn ne(&self, other: &Basic) -> bool
This method tests for !=
.
impl Clone for Basic
[src]
impl Clone for Basic
fn clone(&self) -> Basic
[src]
fn clone(&self) -> Basic
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl FromStr for Basic
[src]
impl FromStr for Basic
creates a Basic from a base-64 encoded, :
-delimited utf-8 string
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Basic, Error>
[src]
fn from_str(s: &str) -> Result<Basic, Error>
Parses a string s
to return a value of this type. Read more
impl Debug for Basic
[src]
impl Debug for Basic
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Scheme for Basic
[src]
impl Scheme for Basic