pub enum AlterAction {
AddColumn {
column: Column,
},
AlterColumn {
name: String,
action: AlterColumnAction,
},
AddConstraint {
name: String,
column: String,
constraint: Constraint,
},
}
Expand description
Alter table action
Variants§
Implementations§
Source§impl AlterAction
impl AlterAction
pub fn set_nullable(name: String, nullable: bool) -> Self
pub fn set_type(name: String, typ: Type) -> Self
pub fn add_constraint( table: &str, column: String, constraint: Constraint, ) -> Self
Trait Implementations§
Source§impl Clone for AlterAction
impl Clone for AlterAction
Source§fn clone(&self) -> AlterAction
fn clone(&self) -> AlterAction
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 AlterAction
impl Debug for AlterAction
Source§impl PartialEq for AlterAction
impl PartialEq for AlterAction
Source§impl ToSql for AlterAction
impl ToSql for AlterAction
impl Eq for AlterAction
impl StructuralPartialEq for AlterAction
Auto Trait Implementations§
impl Freeze for AlterAction
impl RefUnwindSafe for AlterAction
impl Send for AlterAction
impl Sync for AlterAction
impl Unpin for AlterAction
impl UnwindSafe for AlterAction
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