Skip to main content

render_result_to_string

Function render_result_to_string 

Source
pub fn render_result_to_string(
    result: &ExecutionResult,
    format: &OutputFormat,
    jq_filter: Option<&str>,
) -> Result<Option<String>, Error>
Expand description

Renders an ExecutionResult to a String instead of stdout.

Used by the batch processor when capturing output.

ยงErrors

Returns an error if JQ filtering or serialization fails.