pub struct UnionField {
pub field_name: Ident,
pub field_type: DataType,
}Expand description
A field definition within a union
Fields§
§field_name: Ident§field_type: DataTypeTrait 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<'de> Deserialize<'de> for UnionField
impl<'de> Deserialize<'de> for UnionField
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for UnionField
impl Display for UnionField
Source§impl Hash for UnionField
impl Hash for UnionField
Source§impl Ord for UnionField
impl Ord for UnionField
Source§fn cmp(&self, other: &UnionField) -> Ordering
fn cmp(&self, other: &UnionField) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UnionField
impl PartialEq for UnionField
Source§impl PartialOrd for UnionField
impl PartialOrd for UnionField
Source§impl Serialize for UnionField
impl Serialize for UnionField
Source§impl Visit for UnionField
impl Visit for UnionField
Source§impl VisitMut for UnionField
impl VisitMut for UnionField
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
impl Eq 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