Enum go_away::types::UnionRepresentation[][src]

pub enum UnionRepresentation {
    AdjacentlyTagged {
        tag: String,
        content: String,
    },
    InternallyTagged {
        tag: String,
    },
    ExternallyTagged,
    Untagged,
}
Expand description

The serialized representation of the union type

See https://serde.rs/enum-representations.html for details

Variants

AdjacentlyTagged

An adjacently tagged representation

Fields of AdjacentlyTagged

tag: String

The name of the tag field

content: String

The name of the content field

InternallyTagged

An internally tagged representation

Fields of InternallyTagged

tag: String

The name of the tag field

ExternallyTagged

An externally tagged representation

Untagged

An untagged representation

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.