Function with_json_reply

Source
fn with_json_reply<T: Serialize>(
    reply: &T,
    status: StatusCode,
) -> WithStatus<Json>