#[put]
Define a PUT route handler
#[put("/users/:id")] async fn update_user(path: Path<String>, body: Json<User>) -> Json<User> { // handler code }