pub struct AuthUser<T>(pub T);Expand description
Wrapper middleware inserts: req.insert_extension(AuthUser(user)).
Tuple Fields§
§0: TTrait Implementations§
Auto Trait Implementations§
impl<T> Forget for AuthUser<T>
impl<T> Freeze for AuthUser<T>where
T: Freeze,
impl<T> Move for AuthUser<T>
impl<T> RefUnwindSafe for AuthUser<T>where
T: RefUnwindSafe,
impl<T> Send for AuthUser<T>where
T: Send,
impl<T> Sync for AuthUser<T>where
T: Sync,
impl<T> Unpin for AuthUser<T>where
T: Unpin,
impl<T> UnsafeUnpin for AuthUser<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for AuthUser<T>where
T: 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