Struct json_api_rocket::JsonApiFairing
[−]
[src]
pub struct JsonApiFairing;
Trait Implementations
impl Fairing for JsonApiFairing
[src]
fn info(&self) -> Info
[src]
Returns an Info
structure containing the name
and Kind
of this fairing. The name
can be any arbitrary string. Kind
must be an or
d set of Kind
variants. Read more
fn on_attach(&self, rocket: Rocket) -> Result<Rocket, Rocket>
[src]
The attach callback. Returns Ok
if launch should proceed and Err
if launch should be aborted. Read more
fn on_launch(&self, rocket: &Rocket)
[src]
The launch callback. Read more
fn on_request(&self, request: &mut Request, data: &Data)
[src]
The request callback. Read more
fn on_response(&self, request: &Request, response: &mut Response)
[src]
The response callback. Read more