pub struct ColumnDef { /* private fields */ }
Expand description
Defines a Column for an Entity
Implementations
sourceimpl ColumnDef
impl ColumnDef
sourcepub fn default_value<T>(self, value: T) -> Selfwhere
T: Into<Value>,
pub fn default_value<T>(self, value: T) -> Selfwhere
T: Into<Value>,
Set the default value
sourcepub fn get_column_type(&self) -> &ColumnType
pub fn get_column_type(&self) -> &ColumnType
Get ColumnType as reference
Trait Implementations
impl StructuralPartialEq for ColumnDef
Auto Trait Implementations
impl RefUnwindSafe for ColumnDef
impl Send for ColumnDef
impl Sync for ColumnDef
impl Unpin for ColumnDef
impl UnwindSafe for ColumnDef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more