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: Default,
impl<B, ResBody> ValidateRequest<B> for Bearer<ResBody>where
ResBody: Default,
Source§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> !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