Using an enum inside an attached macro

I agree this approach feels clowny… but it's also the approach I went with.