Configuration settings that are limited to a certain set of values can be marked as such by wrapping them with this template.
If the value is not in the provided set, an exception is thrown.
The value can be accessed with the opCall method
the original type of the variable (can be another struct)
default value when it is not given in the configuration file
compare function to be used to compare two values from the set
tuple of values that are valid
See Implementation
Configuration settings that are limited to a certain set of values can be marked as such by wrapping them with this template.
If the value is not in the provided set, an exception is thrown.
The value can be accessed with the opCall method