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§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
impl Eq for UnionField
Source§impl Hash for UnionField
impl Hash for UnionField
Source§impl Ord for UnionField
impl Ord for UnionField
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum 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
impl StructuralPartialEq 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>
Auto Trait Implementations§
impl Freeze for UnionField
impl RefUnwindSafe for UnionField
impl Send for UnionField
impl Sync for UnionField
impl Unpin for UnionField
impl UnsafeUnpin 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