Keywords
type
Declares an object type of your own: a name, then a braced block with one typed field per line. A field may carry a default value, and at least one field is required. A data type in a field may carry type arguments in angle brackets. Which types accept them is not documented, so no example is offered.
Syntax
type <type_name> {
<data_type> <field_name> [= <default_value>]
...
}