[−][src]Trait rocket_json_response::JSONResponseCode
The code of your JSON response.
Required methods
fn get_code(&self) -> i32
Assume the code 0 means OK. You can define other codes by yourself. This method will be called for one time when the response is being triggered. You can do something (perhaps keep a log?) at the moment.