Function to_string_pretty
fn to_string_pretty<T>(value: &T) -> Result<alloc::string::String, Error>
where
T: serde::ser::Serialize + ?Sized
Serialize the given data structure as a "pretty" String of TOML.
This is identical to to_string except the output string has a more
"pretty" output. See Serializer::pretty for more details.
To serialize TOML values, instead of documents, see ValueSerializer.
For greater customization, instead serialize to a
toml_edit::DocumentMut.