refactor: simplify define_str_enum macro usage
- Provide generic
UnknownEnumVariant
struct instead of specifying personalizedFromStr::Err
for every enum. - Provide documentation and tests
- Move it to a separate source file
Edited by Yaroslav Dynnikov
UnknownEnumVariant
struct instead of specifying personalized FromStr::Err
for every enum.