Enum sea_query::table::ColumnSpec
source · pub enum ColumnSpec {
Null,
NotNull,
Default(SimpleExpr),
AutoIncrement,
UniqueKey,
PrimaryKey,
Check(SimpleExpr),
Generated {
expr: SimpleExpr,
stored: bool,
},
Extra(String),
Comment(String),
}
Expand description
All column specification keywords
Variants§
Null
NotNull
Default(SimpleExpr)
AutoIncrement
UniqueKey
PrimaryKey
Check(SimpleExpr)
Generated
Extra(String)
Comment(String)
Trait Implementations§
source§impl Clone for ColumnSpec
impl Clone for ColumnSpec
source§fn clone(&self) -> ColumnSpec
fn clone(&self) -> ColumnSpec
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ColumnSpec
impl Send for ColumnSpec
impl Sync for ColumnSpec
impl Unpin for ColumnSpec
impl !UnwindSafe for ColumnSpec
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