Skip to main content

json_response

Function json_response 

Source
pub fn json_response(status: StatusCode, body: impl Serialize) -> Response
Expand description

Render any Serialize payload as a JSON response with the given status.