Derive Macros

  • Macro to generate getters/setters for common fields in an enum. Meaning, that if every variant of your enum has some field, you could access it though field(), field_mut() or into_field() accessors respectively.