pub struct UnionField {
pub name: String,
pub type_name: String,
}Expand description
A field in a union variant
Example: response-chan: Int
Fields§
§name: String§type_name: StringTrait Implementations§
Source§impl Clone for UnionField
impl Clone for UnionField
Source§fn clone(&self) -> UnionField
fn clone(&self) -> UnionField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnionField
impl Debug for UnionField
Source§impl PartialEq for UnionField
impl PartialEq for UnionField
impl StructuralPartialEq for UnionField
Auto Trait Implementations§
impl Freeze for UnionField
impl RefUnwindSafe for UnionField
impl Send for UnionField
impl Sync for UnionField
impl Unpin for UnionField
impl UnwindSafe for UnionField
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