pub struct ColumnDef {
pub name: String,
pub sql_type: String,
pub nullable: bool,
pub default: Option<String>,
pub auto_increment: bool,
pub primary_key: bool,
}Expand description
建表时的列定义
Fields§
§name: String§sql_type: String§nullable: bool§default: Option<String>§auto_increment: bool§primary_key: boolTrait 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