#rocket #server #web #json

rocket-json-response

This is a crate which provides JSONResponse and JSONResponseWithoutData structs to response JSON format data with an additional code integer value

22 releases

0.6.0 Aug 13, 2021
0.5.16 Jul 29, 2020
0.5.12 Jun 27, 2020
0.5.10 Sep 19, 2019
0.2.0 Nov 17, 2018

#469 in Web programming

Download history 7/week @ 2021-06-24 9/week @ 2021-07-01 9/week @ 2021-07-08 31/week @ 2021-07-15 5/week @ 2021-07-22 48/week @ 2021-07-29 27/week @ 2021-08-05 65/week @ 2021-08-12 5/week @ 2021-08-19 6/week @ 2021-08-26 3/week @ 2021-09-02 14/week @ 2021-09-09 25/week @ 2021-09-16 2/week @ 2021-09-23 28/week @ 2021-09-30 33/week @ 2021-10-07

70 downloads per month
Used in mprober

MIT license

13KB
253 lines

JSON Response for Rocket Framework

CI

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


lib.rs:

JSON Response for Rocket Framework

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.

Dependencies

~19MB
~416K SLoC