Skip to main content

render_response_with

Function render_response_with 

Source
pub fn render_response_with<F>(
    command: &str,
    json_output: bool,
    data: Value,
    text: F,
) -> String
where F: FnOnce() -> String,
Expand description

Render either the shared JSON envelope or lazily-built plain text for a command response.