Struct headers::common::authorization::Basic
source · pub struct Basic {
decoded: String,
colon_pos: usize,
}
Expand description
Credential holder for Basic Authentication
Fields§
§decoded: String
§colon_pos: usize
Implementations§
Trait Implementations§
source§impl Credentials for Basic
impl Credentials for Basic
source§const SCHEME: &'static str = "Basic"
const SCHEME: &'static str = "Basic"
The scheme identify the format of these credentials. Read more
source§fn decode(value: &HeaderValue) -> Option<Self>
fn decode(value: &HeaderValue) -> Option<Self>
Try to decode the credentials from the
HeaderValue
. Read moresource§fn encode(&self) -> HeaderValue
fn encode(&self) -> HeaderValue
Encode the credentials to a
HeaderValue
. Read moresource§impl PartialEq for Basic
impl PartialEq for Basic
impl StructuralPartialEq for Basic
Auto Trait Implementations§
impl Freeze for Basic
impl RefUnwindSafe for Basic
impl Send for Basic
impl Sync for Basic
impl Unpin for Basic
impl UnwindSafe for Basic
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more