Skip to main content

render

Function render 

Source
pub fn render<T: Serialize>(
    value: &T,
    format: DocFormat,
) -> Result<String, String>
Expand description

value as text in format: pretty JSON, or TOML (which has no null: absent fields are left out, as the contract’s types already do).