pub struct AuthToken(User);
Tuple Fields§
§0: User
Trait Implementations§
source§impl FromRequest for AuthToken
impl FromRequest for AuthToken
§type Error = ControllerError
type Error = ControllerError
The associated error which can be returned.
§type Future = Pin<Box<dyn Future<Output = Result<AuthToken, ControllerError>>>>
type Future = Pin<Box<dyn Future<Output = Result<AuthToken, ControllerError>>>>
Future that resolves to a
Self
. Read moresource§fn from_request(req: &HttpRequest, _payload: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, _payload: &mut Payload) -> Self::Future
Create a
Self
from request parts asynchronously.Auto Trait Implementations§
impl RefUnwindSafe for AuthToken
impl Send for AuthToken
impl Sync for AuthToken
impl Unpin for AuthToken
impl UnwindSafe for AuthToken
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