pub struct ColumnDef { /* private fields */ }
Expand description
Defines a Column for an Entity
Implementations§
source§impl ColumnDef
impl ColumnDef
sourcepub fn default_value<T>(self, value: T) -> Self
pub fn default_value<T>(self, value: T) -> Self
Set the default value
sourcepub fn default<T>(self, default: T) -> Selfwhere
T: Into<SimpleExpr>,
pub fn default<T>(self, default: T) -> Selfwhere
T: Into<SimpleExpr>,
Set the default value or expression of a column
sourcepub fn get_column_type(&self) -> &ColumnType
pub fn get_column_type(&self) -> &ColumnType
Get ColumnType as reference
Trait Implementations§
source§impl ColumnTypeTrait for ColumnDef
impl ColumnTypeTrait for ColumnDef
source§impl PartialEq for ColumnDef
impl PartialEq for ColumnDef
impl StructuralPartialEq for ColumnDef
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