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§
Auto Trait Implementations§
impl Freeze for Union
impl RefUnwindSafe for Union
impl Send for Union
impl Sync for Union
impl Unpin for Union
impl UnwindSafe for Union
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