Skip to main content

Crate struct_to_enum

Crate struct_to_enum 

Source

Traits§

FieldNames
Implemented by structs that have a FieldName enum generated by the FieldName derive macro.

Derive Macros§

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.