Struct tower_http::auth::require_authorization::Bearer
source · pub struct Bearer<ResBody> { /* private fields */ }
Available on crate feature
auth
only.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>where
ResBody: Body + Default,
impl<B, ResBody> ValidateRequest<B> for Bearer<ResBody>where ResBody: Body + Default,
§type ResponseBody = ResBody
type ResponseBody = ResBody
Available on crate feature
validate-request
only.The body type used for responses to unvalidated requests.
Auto Trait Implementations§
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