pub struct StructField {
pub name: Option<Ident>,
pub data_type: DataType,
pub not_null: bool,
pub options: Vec<SqlOption>,
}Expand description
A field of STRUCT<name type> or a column of TABLE<...>.
Fields§
§name: Option<Ident>§data_type: DataType§not_null: bool§options: Vec<SqlOption>Implementations§
Trait Implementations§
Source§impl Clone for StructField
impl Clone for StructField
Source§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
impl Eq for StructField
Source§impl Hash for StructField
impl Hash for StructField
Source§impl PartialEq for StructField
impl PartialEq for StructField
Source§impl Serialize for StructField
impl Serialize for StructField
impl StructuralPartialEq for StructField
Auto Trait Implementations§
impl Forget for StructField
impl Freeze for StructFieldwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const DataType is !null: Freeze,
PhantomData<DataType>: Freeze,
PhantomData<StructField>: Freeze,
PhantomData<SqlOption>: Freeze,
impl Move for StructField
impl RefUnwindSafe for StructField
impl Send for StructField
impl Sync for StructField
impl Unpin for StructField
impl UnsafeUnpin for StructFieldwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const DataType is !null: UnsafeUnpin,
PhantomData<DataType>: UnsafeUnpin,
PhantomData<StructField>: UnsafeUnpin,
PhantomData<SqlOption>: UnsafeUnpin,
impl UnwindSafe for StructFieldwhere
RawVecInner: UnwindSafe,
BoxRaw<DataType>: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<Query>: UnwindSafe,
BoxRaw<Function>: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.