Skip to main content

render_response_parts

Function render_response_parts 

Source
pub fn render_response_parts<D, T>(
    command: &str,
    output: JsonOutput,
    data: D,
    text: T,
) -> String
where D: FnOnce() -> Value, T: FnOnce() -> String,
Expand description

Render either the shared JSON envelope or lazily-built command data and plain text.