pub enum Step {
CreateTable(Arc<TableDef>),
AddColumn {
table: Arc<TableDef>,
column: ColumnDef,
},
CreateIndex {
table: Arc<TableDef>,
column: ColumnDef,
},
AddUnique {
table: Arc<TableDef>,
columns: Vec<&'static str>,
},
}Variants§
CreateTable(Arc<TableDef>)
AddColumn
CreateIndex
A non-unique index (ColumnDef::index). Unique columns get an inline constraint.
AddUnique
A unique constraint on columns that already exist, or will once the steps before it
ran: every UniqueDef of a new table, and any unique
set an existing table is missing. Adapters refuse it, naming the rows, when the
table holds duplicates.
Trait Implementations§
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Forget for Step
impl Freeze for Step
impl Move for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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