pub struct StructField {
    pub field_name: Option<Ident>,
    pub field_type: DataType,
}Expand description
A field definition within a struct.
Fields§
§field_name: Option<Ident>§field_type: DataTypeTrait Implementations§
Source§impl Clone for StructField
 
impl Clone for StructField
Source§fn clone(&self) -> StructField
 
fn clone(&self) -> StructField
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 StructField
 
impl Debug for StructField
Source§impl<'de> Deserialize<'de> for StructField
 
impl<'de> Deserialize<'de> for StructField
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 StructField
 
impl Display for StructField
Source§impl Hash for StructField
 
impl Hash for StructField
Source§impl Ord for StructField
 
impl Ord for StructField
Source§fn cmp(&self, other: &StructField) -> Ordering
 
fn cmp(&self, other: &StructField) -> 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 StructField
 
impl PartialEq for StructField
Source§impl PartialOrd for StructField
 
impl PartialOrd for StructField
Source§impl Serialize for StructField
 
impl Serialize for StructField
Source§impl Visit for StructField
 
impl Visit for StructField
Source§impl VisitMut for StructField
 
impl VisitMut for StructField
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
impl Eq for StructField
impl StructuralPartialEq for StructField
Auto Trait Implementations§
impl Freeze for StructField
impl RefUnwindSafe for StructField
impl Send for StructField
impl Sync for StructField
impl Unpin for StructField
impl UnwindSafe for StructField
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