pub struct ColumnDef {
pub name: String,
pub col_type: ColumnType,
pub nullable: bool,
pub primary_key: bool,
pub unique: bool,
pub default: Option<DefaultValue>,
pub references: Option<FkReference>,
pub index: bool,
}Expand description
Definition of a single column.
Fields§
§name: String§col_type: ColumnType§nullable: bool§primary_key: bool§unique: bool§default: Option<DefaultValue>§references: Option<FkReference>§index: boolCreate a b-tree index on this column.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ColumnDef
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