pub struct BearerSource;Expand description
Extracts a token from the Authorization: Bearer <token> header.
The scheme comparison is case-insensitive per RFC 7235 — Bearer,
bearer, BEARER, etc. are all accepted.
Trait Implementations§
Source§impl TokenSource for BearerSource
impl TokenSource for BearerSource
Auto Trait Implementations§
impl Freeze for BearerSource
impl RefUnwindSafe for BearerSource
impl Send for BearerSource
impl Sync for BearerSource
impl Unpin for BearerSource
impl UnsafeUnpin for BearerSource
impl UnwindSafe for BearerSource
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