json_response

Function json_response 

Source
pub fn json_response<T: Serialize>(data: T) -> ResponseBuilder
Expand description

Global JSON response helper

Creates a ResponseBuilder with JSON data already set.