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: FieldTypeThe type inside the variant
serialized_name: StringThe 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 !=.
Auto Trait Implementations
impl RefUnwindSafe for UnionVariantimpl Send for UnionVariantimpl Sync for UnionVariantimpl Unpin for UnionVariantimpl UnwindSafe for UnionVariant