thrift_enum

Macro thrift_enum 

Source
macro_rules! thrift_enum {
    ($(#[$($def_attrs:meta)*])* enum $identifier:ident { $($(#[$($field_attrs:meta)*])* $field_name:ident = $field_value:literal;)* }) => { ... };
}
Expand description

Generate the type and CompactThriftProtocol implementation for a thrift enum.

Syntax (square brackets indicate optional parts or alternatives):

[ doc_comment ]
enum enum_name {
   [ doc_comment ]
   field_name = field_value ;
   ...
}