pub fn to_string<T: Serialize>(value: &T) -> Result<String, Error>
Expand description
Serialize the given data value as a plain string.
This serializes an object with the Serializer
into a string and then
returns it. This requires that the type is a simple one (integer, string,
etc.).