テスト用のサーバーにリクエストするとTestResponse が返ってくるので、TestResponse を検証する let response = server.put("/users") .content_type(&"application/json") .json(&json!({ "username": "Terrance Pencilworth", })) .await; 具体的なStatusCode で検証することが可能 TestResponse in axum_test - Rust The `TestResponse` is the result of a request created using a `TestServer`. The `TestServer` builds a `TestRequest`, which when awaited, will produce this type. https://docs.rs/axum-test/latest/axum_test/struct.TestResponse.html#