Skip to main content

render_results

Function render_results 

Source
pub fn render_results(results: &[Value], format: Format) -> String
Expand description

Render a list of contract results in the requested format.

JSON output is a well-formed array; XML output wraps the results in a <results> document element.