Enum
An enum is a closed set of named variants.
Use it as a field type, optionally with a default:
Variants are bare identifiers. Attaching data to a variant
(Encrypt(EncryptionAlgorithm)) is a proposal, not
yet part of the language.
An enum is a closed set of named variants.
Use it as a field type, optionally with a default:
Variants are bare identifiers. Attaching data to a variant
(Encrypt(EncryptionAlgorithm)) is a proposal, not
yet part of the language.