ReadonlykindReadonlysizeThe numeric type used to serialise the discriminator. The discriminator prepends the serialised variant payload to identify which variant was selected. By default it is the index of the variant (starting at 0), unless the variant provides its own custom discriminator value.
Optional ReadonlyvariantsThe variants of the enum, in declaration order.
A tagged union: a numeric discriminator followed by one of several variant payloads.