pub fn render<T: Serialize>( value: &T, format: DocFormat, ) -> Result<String, String>
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).
value
format