pub enum AlterTableAction {
AddColumn(ColumnDef),
DropColumn {
name: String,
if_exists: bool,
},
RenameColumn {
old_name: String,
new_name: String,
},
AlterColumnType {
name: String,
data_type: DataType,
},
AddConstraint(TableConstraint),
DropConstraint {
name: String,
},
RenameTable {
new_name: String,
},
}Variants§
AddColumn(ColumnDef)
DropColumn
RenameColumn
AlterColumnType
AddConstraint(TableConstraint)
DropConstraint
RenameTable
Trait Implementations§
Source§impl Clone for AlterTableAction
impl Clone for AlterTableAction
Source§fn clone(&self) -> AlterTableAction
fn clone(&self) -> AlterTableAction
Returns a duplicate 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 moreSource§impl Debug for AlterTableAction
impl Debug for AlterTableAction
Source§impl<'de> Deserialize<'de> for AlterTableAction
impl<'de> Deserialize<'de> for AlterTableAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AlterTableAction
impl PartialEq for AlterTableAction
Source§impl Serialize for AlterTableAction
impl Serialize for AlterTableAction
impl StructuralPartialEq for AlterTableAction
Auto Trait Implementations§
impl Freeze for AlterTableAction
impl RefUnwindSafe for AlterTableAction
impl Send for AlterTableAction
impl Sync for AlterTableAction
impl Unpin for AlterTableAction
impl UnsafeUnpin for AlterTableAction
impl UnwindSafe for AlterTableAction
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