Feature Request: Support for enum variants
vinaychandra opened this issue · comments
Vinay Chandra commented
If an enum variant contains the Link
field and the user can guarantee the variant, it should be possible to push the Link into the enum variant type so that only that variant can support the collection rather than wrapping the whole enum in another struct containing the links
Example:
enum SomeEnum {
variant1: {
link: Link
...
}
}
Instead of
struct SomeWrapper {
link: Link
enum: SomeEnum
}