Function to_json_response

Source
pub fn to_json_response<T>(response: T) -> Result<Response<String>>
where T: Serialize + Debug,
Expand description

Returns a 200 response with a JSON body.