pub struct UnionType {
pub name: String,
pub discriminator: TypeRef,
pub cases: Vec<UnionCase>,
}Expand description
<union>-Definition (Spec §7.3.3.4.6).
Fields§
§name: StringUnion-Name.
discriminator: TypeRefDiscriminator-Type-Verweis (z.B. long, short, MyEnum).
cases: Vec<UnionCase>Cases in Dokument-Reihenfolge.
Trait Implementations§
impl Eq for UnionType
impl StructuralPartialEq for UnionType
Auto Trait Implementations§
impl Freeze for UnionType
impl RefUnwindSafe for UnionType
impl Send for UnionType
impl Sync for UnionType
impl Unpin for UnionType
impl UnsafeUnpin for UnionType
impl UnwindSafe for UnionType
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