union< :T1, :T2, ..>¶
Represents a fixed set of type entries where only 1 of types
T1, T2, Tn
will be set.
A union datatype can be considered an in-line union declaration.
Example:
Data : union< :string, :int, :date >
Union containing given types. The fieldData
will contain a value of one of the types.
Using the named syntax below is recommended to clarify the field usage.
Optional Parameters
union< Name1:T1, Name2:T2, ... >
>Labels can be optionally specified for the the types making the union a tagged union.
Example:
PrimaryContact: union< Phone:string, Email:string, Address:string >
Union containing tagged entries.
union< FieldName1, FieldName2, ... >
Fields declared infields {}
block can be referenced simply by specifying their name.