pub struct Basic { /* private fields */ }Expand description
Credentials for Basic authentication scheme, defined in RFC 7617
Implementations§
Trait Implementations§
impl Eq for Basic
Source§impl Ord for Basic
impl Ord for Basic
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Basic
impl PartialOrd for Basic
Source§impl Scheme for Basic
impl Scheme for Basic
Source§fn parse(header: &HeaderValue) -> Result<Self, ParseError>
fn parse(header: &HeaderValue) -> Result<Self, ParseError>
Try to parse an authentication scheme from the
Authorization header.impl StructuralPartialEq for Basic
Source§impl TryIntoHeaderValue for Basic
impl TryIntoHeaderValue for Basic
Source§type Error = InvalidHeaderValue
type Error = InvalidHeaderValue
The type returned in the event of a conversion error.
Source§fn try_into_value(self) -> Result<HeaderValue, Self::Error>
fn try_into_value(self) -> Result<HeaderValue, Self::Error>
Try to convert value to a HeaderValue.
Auto Trait Implementations§
impl Freeze for Basic
impl RefUnwindSafe for Basic
impl Send for Basic
impl Sync for Basic
impl Unpin for Basic
impl UnsafeUnpin 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