Crate to_and_fro
Source - casing
- Define the default case to expect for both parsing, or stringifying.
Valid values are:
- default
- Defines the field to default to when parsing fails.
Also generates a
Default implimentation pointing to the default variant. - input_case
- Define the case to expect when parsing a variant from a string.
Valid values are:
- output_case
- Define the case to stringify to through Display, or Debug.
Valid values are:
- reject
- Rejects the variant from being parsed from a String.
This either throws an Error on parse, or defaults to the variant specified with
default. - serde
- Impliments
serde::Serialize and serde::Deserialize for the enum.
- ToAndFro
- Generate automatic implementations of
FromStr, TryFrom<str-like>, Display, Debug, PartialEq, Eq and Hash for an enum.