Struct seamless::handler::response::ToJson [−][src]
pub struct ToJson<T: ApiBody>(pub T);
Expand description
Wrap responses in this to return them as JSON
Tuple Fields
0: T
Trait Implementations
This returns information about the shape of the type and description of parts of it.
Serialize the type to JSON.
Serialize the type to a serde_json::Value
.
Deserialize from bytes containing a JSON value.
Deserialize from a serde_json::Value
.
type ResponseBody = T
type ResponseBody = T
The type that we should look at to work out what the response body will look like.