Struct go_away::types::UnionVariant [−][src]
pub struct UnionVariant {
pub name: Option<String>,
pub ty: FieldType,
pub serialized_name: String,
}
Expand description
A variant of a union type
Fields
name: Option<String>
The name of the variant if any
ty: FieldType
The type inside the variant
serialized_name: String
The name the variant will be serialized to
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.