Skip to main content

render

Function render 

Source
pub fn render(
    value: &Value,
    format: OutputFormat,
    options: &OutputOptions,
) -> String
Expand description

Render a value as a string in the given format with the given options.

The single value × format × options → String entry point. JSON and YAML are structure-preserving and ignore PlainStyle; plain honors it. All three redact through options.redaction before rendering.