Crates.io | rocket-json-response |
lib.rs | rocket-json-response |
version | 0.6.5 |
source | src |
created_at | 2018-08-30 06:21:58.19247 |
updated_at | 2023-11-03 02:13:12.633117 |
description | This is a crate which provides `JSONResponse` and `JSONResponseWithoutData` structs to response JSON format data with an additional **code** integer value. |
homepage | https://magiclen.org/rocket-json-response |
repository | https://github.com/magiclen/rocket-json-response |
max_upload_size | |
id | 82067 |
size | 51,024 |
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
.
https://crates.io/crates/rocket-json-response
https://docs.rs/rocket-json-response