pub struct BearerAuth<P: TokenProvider> { /* private fields */ }Expand description
Authorization: Bearer <token>, for API access tokens.
Implementations§
Source§impl<P: TokenProvider> BearerAuth<P>
impl<P: TokenProvider> BearerAuth<P>
Sourcepub fn new(provider: P) -> BearerAuth<P>
pub fn new(provider: P) -> BearerAuth<P>
Bearer auth over a provider.
Trait Implementations§
Source§impl<P: TokenProvider> AuthStrategy for BearerAuth<P>
impl<P: TokenProvider> AuthStrategy for BearerAuth<P>
Auto Trait Implementations§
impl<P> Freeze for BearerAuth<P>where
P: Freeze,
impl<P> RefUnwindSafe for BearerAuth<P>where
P: RefUnwindSafe,
impl<P> Send for BearerAuth<P>
impl<P> Sync for BearerAuth<P>
impl<P> Unpin for BearerAuth<P>where
P: Unpin,
impl<P> UnsafeUnpin for BearerAuth<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for BearerAuth<P>where
P: UnwindSafe,
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