Struct go_away::types::Union [−][src]
pub struct Union {
pub name: String,
pub representation: UnionRepresentation,
pub variants: Vec<UnionVariant>,
}
Expand description
A union type - any rust enum that’s variants contain data.
These will be serialzied differently depending on the UnionRepresentation.
Fields
name: String
The name of the union
representation: UnionRepresentation
The representation of the union to use on the wire.
variants: Vec<UnionVariant>
The unions variants.