Function grin_api::json_response
source · pub fn json_response<T>(s: &T) -> ResponseFuturewhere
T: Serialize,
Expand description
Utility to serialize a struct into JSON and produce a sensible Response out of it.
pub fn json_response<T>(s: &T) -> ResponseFuturewhere
T: Serialize,
Utility to serialize a struct into JSON and produce a sensible Response out of it.