pub struct ColumnDef {
pub name: String,
pub affinity: TypeAffinity,
pub is_ipk: bool,
pub not_null: bool,
}Expand description
A column definition in the schema.
Fields§
§name: StringColumn name (stored in original case).
affinity: TypeAffinityType affinity determined from the DDL type name.
is_ipk: boolWhether this column is an INTEGER PRIMARY KEY (rowid alias).
not_null: boolWhether this column has a NOT NULL constraint.
Trait Implementations§
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