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.
- Enum
Variant - 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.
- Union
Variant - A variant of a union type
Enums§
- Field
Type - The type of a field.
- Primitive
- The primitive types
- Union
Representation - The serialized representation of the union type