Expand description
Derive macros for the traits provided by enumscribe, to
help you easily convert your enums to strings and vice-versa.
See the documentation for the enumscribe crate for usage
examples.
Derive Macrosยง
- Enum
Deserialize - Derives
serde::Deserializefor an enum. - Enum
Serialize - Derives
serde::Serializefor an enum. - Scribe
CowStr - Derives
enumscribe::ScribeCowStrfor an enum. This allows the enum to be converted to aCow<'static, str>using thescribe()method. - Scribe
Static Str - Derives
enumscribe::ScribeStaticStrfor an enum. This allows the enum to be converted to a&'static strusing thescribe()method. - Scribe
String - Derives
enumscribe::ScribeStringfor an enum. This allows the enum to be converted to aStringusing thescribe()method. - TryScribe
CowStr - Derives
enumscribe::TryScribeCowStrfor an enum. This allows the enum to be converted to aOption<Cow<'static, str>>using thetry_scribe()method. - TryScribe
Static Str - Derives
enumscribe::TryScribeStaticStrfor an enum. This allows the enum to be converted to aOption<&'static str>using thetry_scribe()method. - TryScribe
String - Derives
enumscribe::TryScribeStringfor an enum. This allows the enum to be converted to aOption<String>using thetry_scribe()method. - TryUnscribe
- Derives
enumscribe::TryUnscribefor an enum. This allows a&strto be converted to anOptionof the enum using thetry_unscribe()associated function. - Unscribe
- Derives
enumscribe::Unscribefor an enum. This allows a&strto be converted to the enum using theunscribe()associated function.