IntoResponse
is a Rust crate that provides utilities for deriving and implementing the IntoResponse
trait for custom types. This crate simplifies the process of converting custom types into HTTP responses.
- Derive macro for
IntoResponse
trait - Customizable response handling
- Support for common response types
Add into_response
to your Cargo.toml
:
[dependencies]
into_response = "0.2"
use into_response::IntoResponse;
#[derive(IntoResponse)]
struct MyResponse {
message: String,
}
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request.
Special thanks to the Rust community for their contributions and support.