Skip to main contentCrate struct_to_enum
Source - FieldNames
- Implemented by structs that have a
FieldName enum generated by the FieldName derive macro.
- FieldName
- Generates
{StructName}FieldName, an enum whose variants represent struct field names.
For enum variants with values use FieldType instead. - FieldType
- Generates
{StructName}FieldType, an enum whose variants wrap struct field values.
For enum variants without values use FieldName instead.