Union TypeDefpub

Source
:union(pub) TypeDef
  | RecordType RecordTypeDef
  | UnionType UnionTypeDef
Description

A type definition suitable for a derive macro input — either a record or a union. Enums are not included because they have no payload data to reflect over.

Variants

| RecordType RecordTypeDef
| UnionType UnionTypeDef