Struct headers::authorization::Basic
source · [−]pub struct Basic { /* private fields */ }
Expand description
Credential holder for Basic Authentication
Implementations
Trait Implementations
sourceimpl Credentials for Basic
impl Credentials for Basic
sourceconst SCHEME: &'static str = "Basic"
const SCHEME: &'static str = "Basic"
The scheme identify the format of these credentials. Read more
sourcefn decode(value: &HeaderValue) -> Option<Self>
fn decode(value: &HeaderValue) -> Option<Self>
Try to decode the credentials from the HeaderValue
. Read more
sourcefn encode(&self) -> HeaderValue
fn encode(&self) -> HeaderValue
Encode the credentials to a HeaderValue
. Read more
sourceimpl PartialEq<Basic> for Basic
impl PartialEq<Basic> for Basic
impl StructuralPartialEq for Basic
Auto Trait Implementations
impl RefUnwindSafe for Basic
impl Send for Basic
impl Sync for Basic
impl Unpin for Basic
impl UnwindSafe for Basic
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more