pub struct Column {
pub name: Ident,
pub pg_type: PgType,
pub sqlite_type: Option<SqliteType>,
pub not_null: bool,
pub default: Option<Expr>,
pub is_primary_key: bool,
pub is_unique: bool,
pub autoincrement: bool,
pub references: Option<ForeignKeyRef>,
pub check: Option<Expr>,
}Expand description
A column definition within a table.
Fields§
§name: Ident§pg_type: PgType§sqlite_type: Option<SqliteType>§not_null: bool§default: Option<Expr>§is_primary_key: bool§is_unique: bool§autoincrement: bool§references: Option<ForeignKeyRef>§check: Option<Expr>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnsafeUnpin for Column
impl UnwindSafe for Column
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