Skip to content

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

License

Notifications You must be signed in to change notification settings

magiclen/rocket-json-response

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages