nu_json::ser

Function to_string_with_indent

Source
pub fn to_string_with_indent<T>(value: &T, indent: usize) -> Result<String>
where T: Serialize,
Expand description

Encode the specified struct into a Hjson String buffer.