rocket-json-response 0.1.0

This is a crate which provides `JSONResponse` and `JSONResponseWithoutData` structs to response JSON format data with an additional **code** integer value.
docs.rs failed to build rocket-json-response-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: rocket-json-response-0.6.5

JSON Response for Rocket Framework

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

Typically, the code 0 means OK. You can define other codes by yourself by implementing JSONResponseCode trait for your struct.

Refer to tests/index.rs to see an complete example.

License

MIT