macro_rules! thrift_enum {
($(#[$($def_attrs:tt)*])* enum $identifier:ident { $($(#[$($field_attrs:tt)*])* $field_name:ident = $field_value:literal;)* }) => { ... };
}
Expand description
Macro used to generate rust enums from a Thrift enum
definition.
When utilizing this macro the Thrift serialization traits and structs need to be in scope.