Struct actix_loginmanager::UserWrap [−][src]
pub struct UserWrap<T>(pub Rc<T>);
Expand description
The wrap of user Instance. It implements FromRequest
trait.
It will return 401 Unauthorized
if no key or error key.
If loginmanager set redirect true,then will rediret login_view.
#[get("/index")] async fn index(UserWrap(user): UserWrap<User>) -> impl Responder{ todo()! }
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for UserWrap<T>
impl<T> UnwindSafe for UserWrap<T> where
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V