wartab

Untitled

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