Struct sqlparser::ast::StructField
source · 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: DataType
Trait Implementations§
source§impl Clone for StructField
impl Clone for StructField
source§fn clone(&self) -> StructField
fn clone(&self) -> StructField
Returns a copy 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§fn eq(&self, other: &StructField) -> bool
fn eq(&self, other: &StructField) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StructField
impl PartialOrd for StructField
source§fn partial_cmp(&self, other: &StructField) -> Option<Ordering>
fn partial_cmp(&self, other: &StructField) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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