Skip to main content

to_string_pretty

Function to_string_pretty 

Source
pub fn to_string_pretty<T: Serialize>(value: &T) -> Result<String, Error>
Expand description

Serialize a value to a pretty-printed JSON string with 2-space indentation.