Crate serializable_enum [] [src]

Macros for serializing / deserializing enums containing no data variants using serde.

Macros

impl_as_ref_from_str

Generate AsRef and FromStr impls for the given type with the variant / string pairs specified.

serde_visitor

Implement serde Serialize, Deserialize, and Visitor traits for the provided type and visitor type.

serializable_enum

Implements deserialization and serialization for an enum of the form: