[][src]Trait rocket_json_response::JSONResponseCode

pub trait JSONResponseCode {
    fn get_code(&self) -> i32;
}

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.

Loading content...

Implementations on Foreign Types

impl JSONResponseCode for i8[src]

impl JSONResponseCode for i16[src]

impl JSONResponseCode for i32[src]

impl JSONResponseCode for u8[src]

impl JSONResponseCode for u16[src]

impl JSONResponseCode for u32[src]

Loading content...

Implementors

Loading content...