rocket-json-response

Crates.iorocket-json-response
lib.rsrocket-json-response
version0.6.5
sourcesrc
created_at2018-08-30 06:21:58.19247
updated_at2023-11-03 02:13:12.633117
descriptionThis is a crate which provides `JSONResponse` and `JSONResponseWithoutData` structs to response JSON format data with an additional **code** integer value.
homepagehttps://magiclen.org/rocket-json-response
repositoryhttps://github.com/magiclen/rocket-json-response
max_upload_size
id82067
size51,024
Magic Len (Ron Li) (magiclen)

documentation

README

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

Commit count: 42

cargo fmt