pub struct ColumnDef {
pub name: StrRef,
pub ty: StrRef,
pub not_null: bool,
}Expand description
One column of a CREATE TABLE.
The type is the text as written rather than a resolved type, because resolving a type is the
binder’s job and this crate is syntax. VARCHAR(10) and STRUCT(a INTEGER) reach the binder
as themselves.
Fields§
§name: StrRefThe column name.
ty: StrRefThe type as written, or NONE when the definition had none, which only CREATE TABLE AS
allows.
not_null: boolWhether NOT NULL was written.
Trait Implementations§
impl Copy for ColumnDef
impl Eq for ColumnDef
impl StructuralPartialEq for ColumnDef
Auto Trait Implementations§
impl Freeze for ColumnDef
impl RefUnwindSafe for ColumnDef
impl Send for ColumnDef
impl Sync for ColumnDef
impl Unpin for ColumnDef
impl UnsafeUnpin for ColumnDef
impl UnwindSafe for ColumnDef
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