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.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.