Struct rocket::response::content::Json [] [src]

pub struct Json<R>(pub R);

Override the Content-Type of the response to , or .

Delagates the remainder of the response to the wrapped responder.

Trait Implementations

impl<R: Debug> Debug for Json<R>
[src]

[src]

Formats the value using the given formatter.

impl<R: Clone> Clone for Json<R>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<R: PartialEq> PartialEq for Json<R>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'r, R: Responder<'r>> Responder<'r> for Json<R>
[src]

Sets the Content-Type of the response then delegates the remainder of the response to the wrapped responder.

[src]

Returns Ok if a Response could be generated successfully. Otherwise, returns an Err with a failing Status. Read more