Function grin_api::json_response[−][src]

pub fn json_response<T>(s: &T) -> ResponseFuture where
    T: Serialize, 
Expand description

Utility to serialize a struct into JSON and produce a sensible Response out of it.