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§
Source§impl Debug for UnionVariant
impl Debug for UnionVariant
Source§impl PartialEq for UnionVariant
impl PartialEq for UnionVariant
impl Eq for UnionVariant
impl StructuralPartialEq for UnionVariant
Auto Trait Implementations§
impl Freeze for UnionVariant
impl RefUnwindSafe for UnionVariant
impl Send for UnionVariant
impl Sync for UnionVariant
impl Unpin for UnionVariant
impl UnwindSafe for UnionVariant
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more