Module types

Module types 

Source
Expand description

Defines the type model for go-away - a set of structs that describe types and can be used to generate copies of them in other languages.

Structs§

Alias
A type alias (e.g. type SomeType = HashMap<String, String>;)
Enum
An enum - note that in go-away these do not contain data.
EnumVariant
An enum variant - note that these are just names and are serialized as strings.
Field
A field within a struct
NewType
A newtype struct (e.g. struct SomeId(String))
Struct
A struct.
TypeRef
A reference to a given named type
Union
A union type - any rust enum that’s variants contain data.
UnionVariant
A variant of a union type

Enums§

FieldType
The type of a field.
Primitive
The primitive types
UnionRepresentation
The serialized representation of the union type