Is there a way to use existing structs as enum variants?

There have been multiple RFCs about making enum variants their own type:

Unfortunately, they have been postponed or not yet decided on as this is not considered a language priority.

This means that right now, the way you have proposed is the only way to have types for enum variants.

Leave a Comment