pub struct RequireAuthorization<R, T = StandardToken>where
R: AuthorizationRequirements<T>,
T: ExtraTokenFields,{ /* private fields */ }Implementations§
Source§impl<R, T> RequireAuthorization<R, T>where
R: AuthorizationRequirements<T>,
T: ExtraTokenFields,
impl<R, T> RequireAuthorization<R, T>where
R: AuthorizationRequirements<T>,
T: ExtraTokenFields,
pub fn introspection(&self) -> &IntrospectionResponse<T>
Trait Implementations§
Source§impl<R, T> FromRequest for RequireAuthorization<R, T>
impl<R, T> FromRequest for RequireAuthorization<R, T>
Source§type Future = Pin<Box<dyn Future<Output = Result<RequireAuthorization<R, T>, <RequireAuthorization<R, T> as FromRequest>::Error>>>>
type Future = Pin<Box<dyn Future<Output = Result<RequireAuthorization<R, T>, <RequireAuthorization<R, T> as FromRequest>::Error>>>>
Future that resolves to a
Self. Read moreSource§fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future
Create a
Self from request parts asynchronously.Auto Trait Implementations§
impl<R, T> Freeze for RequireAuthorization<R, T>where
T: Freeze,
impl<R, T> RefUnwindSafe for RequireAuthorization<R, T>where
T: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, T> Send for RequireAuthorization<R, T>
impl<R, T> Sync for RequireAuthorization<R, T>
impl<R, T> Unpin for RequireAuthorization<R, T>
impl<R, T> UnwindSafe for RequireAuthorization<R, T>where
T: UnwindSafe,
R: 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