Enum sea_orm_migration::prelude::ColumnSpec
pub enum ColumnSpec {
Null,
NotNull,
Default(SimpleExpr),
AutoIncrement,
UniqueKey,
PrimaryKey,
Check(SimpleExpr),
Generated {
expr: SimpleExpr,
stored: bool,
},
Extra(String),
}Expand description
All column specification keywords
Variants§
Null
NotNull
Default(SimpleExpr)
AutoIncrement
UniqueKey
PrimaryKey
Check(SimpleExpr)
Generated
Extra(String)
Trait Implementations§
§impl Clone for ColumnSpec
impl Clone for ColumnSpec
§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 more