pub struct ColumnDef {
pub column_ref: ColumnRef,
pub column_type: &'static str,
pub value: Value,
pub nullable: bool,
pub default: Option<Box<dyn Expression>>,
pub primary_key: PrimaryKeyType,
pub unique: bool,
pub references: Option<ColumnRef>,
pub on_delete: Option<Action>,
pub on_update: Option<Action>,
pub passive: bool,
pub comment: &'static str,
}
Fields§
§column_ref: ColumnRef
§column_type: &'static str
§value: Value
§nullable: bool
§default: Option<Box<dyn Expression>>
§primary_key: PrimaryKeyType
§unique: bool
§references: Option<ColumnRef>
§on_delete: Option<Action>
§on_update: Option<Action>
§passive: bool
§comment: &'static str
Implementations§
Trait Implementations§
Source§impl Expression for ColumnDef
impl Expression for ColumnDef
fn write_query( &self, writer: &dyn SqlWriter, context: &mut Context, buff: &mut String, )
fn is_ordered(&self) -> bool
Source§impl OpPrecedence for ColumnDef
impl OpPrecedence for ColumnDef
fn precedence(&self, _writer: &dyn SqlWriter) -> i32
Auto Trait Implementations§
impl Freeze for ColumnDef
impl !RefUnwindSafe for ColumnDef
impl Send for ColumnDef
impl Sync for ColumnDef
impl Unpin 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