Function serde_plain::to_string [] [src]

pub fn to_string<T: Serialize>(value: &T) -> Result<String, Error>

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.).