pub struct Bearer { /* private fields */ }Expand description
Credentials for Bearer authentication scheme, defined in RFC 6750.
Should be used in combination with Authorization header.
Implementations§
Trait Implementations§
impl Eq for Bearer
Source§impl Ord for Bearer
impl Ord for Bearer
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 Bearer
impl PartialOrd for Bearer
Source§impl Scheme for Bearer
impl Scheme for Bearer
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 Bearer
Source§impl TryIntoHeaderValue for Bearer
impl TryIntoHeaderValue for Bearer
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 Bearer
impl RefUnwindSafe for Bearer
impl Send for Bearer
impl Sync for Bearer
impl Unpin for Bearer
impl UnsafeUnpin for Bearer
impl UnwindSafe for Bearer
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