json_response

Function json_response 

Source
pub fn json_response(data: impl Serialize) -> ApplicationResponse
Expand description

Creates an HTTP response with a JSON body constructed from any serializable input