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: StringThe name of the union
representation: UnionRepresentationThe representation of the union to use on the wire.
variants: Vec<UnionVariant>The unions variants.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Unionimpl UnwindSafe for Union