Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 871 Bytes

README.md

File metadata and controls

41 lines (26 loc) · 871 Bytes

IntoResponse

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.

Features

  • Derive macro for IntoResponse trait
  • Customizable response handling
  • Support for common response types

Usage

Add into_response to your Cargo.toml:

[dependencies]
into_response = "0.2"

Example

use into_response::IntoResponse;

#[derive(IntoResponse)]
struct MyResponse {
  message: String,
}

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Acknowledgements

Special thanks to the Rust community for their contributions and support.