Expose enums

Trait is used in generated files.