struct UnionMember {
tag: String,
payload: Option<String>,
inline_fields: Option<Vec<RustField>>,
file: String,
}Expand description
One member of the tagged union, wherever it was declared.
Fields§
§tag: StringWire tag.
payload: Option<String>The payload type the variant wraps, if it wraps one.
inline_fields: Option<Vec<RustField>>Fields declared inline on a struct variant. None means “look the
payload type up”; Some(vec![]) means “this variant has no fields”.
file: StringRepo-relative file the declaration was read from.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnionMember
impl RefUnwindSafe for UnionMember
impl Send for UnionMember
impl Sync for UnionMember
impl Unpin for UnionMember
impl UnsafeUnpin for UnionMember
impl UnwindSafe for UnionMember
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