pub struct ColumnDef {
pub name: String,
pub typ: String,
pub nullable: bool,
pub primary_key: bool,
}Expand description
Definition of a single column.
Fields§
§name: StringColumn name.
typ: StringSQL data type.
nullable: boolWhether the column accepts NULL.
primary_key: boolWhether the column is a primary key.
Trait Implementations§
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