pub struct BearerSource;Expand description
Extracts a token from the Authorization: Bearer <token> header.
Accepts the scheme written as Bearer or bearer (those two exact
capitalizations, followed by a single space). Other capitalizations
or auth schemes return None.
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