Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/magiclen/rocket-json-response
This is a crate which provides `JSONResponse` and `JSONResponseWithoutData` structs to response JSON format data with an additional **code** integer value.
https://github.com/magiclen/rocket-json-response
json response rocket rust
Last synced: 28 days ago
JSON representation
This is a crate which provides `JSONResponse` and `JSONResponseWithoutData` structs to response JSON format data with an additional **code** integer value.
- Host: GitHub
- URL: https://github.com/magiclen/rocket-json-response
- Owner: magiclen
- License: mit
- Created: 2018-08-30T06:17:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-03T02:12:53.000Z (about 1 year ago)
- Last Synced: 2024-11-14T17:09:52.329Z (about 1 month ago)
- Topics: json, response, rocket, rust
- Language: Rust
- Homepage:
- Size: 34.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
JSON Response for Rocket Framework
====================[![CI](https://github.com/magiclen/rocket-json-response/actions/workflows/ci.yml/badge.svg)](https://github.com/magiclen/rocket-json-response/actions/workflows/ci.yml)
This is a crate which provides `JSONResponse` and `JSONResponseWithoutData` structs to response JSON format data with an additional **code** integer value.
Typically, the code **0** means **OK**. You can define other codes by yourself by implementing `JSONResponseCode` trait for your struct.
See `examples`.
## Crates.io
https://crates.io/crates/rocket-json-response
## Documentation
https://docs.rs/rocket-json-response
## License
[MIT](LICENSE)