Skip to main content

to_string_pretty

Function to_string_pretty 

Source
pub fn to_string_pretty<T: Serialize + ?Sized>(
    value: &T,
    indent: &str,
) -> Result<String>
Expand description

Serializes value like JSON.stringify(value, null, indent).