Type definitions

data

​Product type definition. See Types for details.
1
data SomeType:
2
fieldName: FieldType
3
otherName: OtherType
4
third: []u32
Copied!

alias

Aliasing a type to a name.
It may help with self-documented code and refactoring.
1
alias PeerId: string
2
alias MyDomain: DomainType
Copied!
Copy link
Contents
data
alias