Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- |
- 22 | .route("/users", post(master::create_user))
- | ---- ^^^^^^^^^^^^^^^^^^^ the trait `Handler<_, _, _>` is not implemented for fn item `fn(Json<CreateUserModel>, InsecureClientIp, Extension<User>, ...) -> ... {create_user}`
- | |
- | required by a bound introduced by this call
- = help: the following other types implement trait `Handler<T, S, B>`:
- `MethodRouter<S, B>` implements `Handler<(), S, B>`
- `axum::handler::Layered<L, H, T, S, B, B2>` implements `Handler<T, S, B2>`
Advertisement
Add Comment
Please, Sign In to add comment