Struct poem_openapi::auth::Bearer
source · [−]pub struct Bearer {
pub token: String,
}
Expand description
Used to extract the token68 from the request.
Fields
token: String
token
Trait Implementations
sourceimpl BearerAuthorization for Bearer
impl BearerAuthorization for Bearer
sourcefn from_request(req: &Request) -> Result<Self>
fn from_request(req: &Request) -> Result<Self>
Extract from the HTTP request.
Auto Trait Implementations
impl RefUnwindSafe for Bearer
impl Send for Bearer
impl Sync for Bearer
impl Unpin for Bearer
impl UnwindSafe for Bearer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more