Struct http_auth_basic::Credentials [−][src]
Expand description
A struct to represent the user_id and password fields
from an Authorization Basic header value
Fields
user_id: Stringpassword: StringImplementations
Create a new Credentials instance
this is equivalent to writing:
use http_auth_basic::Credentials; let credentials = Credentials { user_id: String::from("Foo"), password: String::from("Bar"), };
Create a Credentials instance from a base64 String
which must encode user credentials as username:password
Creates a Credentials instance from an HTTP Authorization header
which schema is a valid Basic HTTP Authorization Schema.
Creates a HTTP Authorization header value for the basic schema
from the Credentials instance
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for Credentialsimpl Send for Credentialsimpl Sync for Credentialsimpl Unpin for Credentialsimpl UnwindSafe for Credentials