Struct tower_http::auth::require_authorization::Bearer
source · pub struct Bearer<ResBody> { /* private fields */ }
Expand description
Type that performs “bearer token” authorization.
See ValidateRequestHeader::bearer
for more details.
Trait Implementations§
source§impl<B, ResBody> ValidateRequest<B> for Bearer<ResBody>
impl<B, ResBody> ValidateRequest<B> for Bearer<ResBody>
Auto Trait Implementations§
impl<ResBody> !Freeze for Bearer<ResBody>
impl<ResBody> RefUnwindSafe for Bearer<ResBody>
impl<ResBody> Send for Bearer<ResBody>
impl<ResBody> Sync for Bearer<ResBody>
impl<ResBody> Unpin for Bearer<ResBody>
impl<ResBody> UnwindSafe for Bearer<ResBody>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)