pub struct ColumnDef {
pub name: &'static str,
pub column_type: ColumnType,
pub primary_key: bool,
pub not_null: bool,
pub unique: bool,
pub default: Option<Value>,
}Expand description
Column definition for schema generation
Fields§
§name: &'static strColumn name
column_type: ColumnTypeColumn type
primary_key: boolIs this column the primary key?
not_null: boolIs this column NOT NULL?
unique: boolIs this column UNIQUE?
default: Option<Value>Default value (if any)
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