pub fn to_string<'a, T, I>(value: &T, indent: I) -> Result<String, Error> where
T: ?Sized + Serialize,
I: Into<Option<&'a str>>,
Expand description
Serializes a value to a string as the Neodyn Exchange text representation.
indent
will be used to pretty-print it if it is Some
. Otherwise, if
it is None
, a compact representation will be emitted.