Serde Plain
This crate implements a plain text serializer and deserializer. It can only
serialize and deserialize primitives and derivatives thereof (like basic enums
or newtypes). It internally uses the FromStr
and Display
trait to convert
objects around.
From String
To parse a value from a string the from_str helper can be used:
assert_eq!;
This is particularly useful if enums are in use:
use Deserialize;
assert_eq!;
To String
The inverse is also possible with to_string:
assert_eq!;