pub enum AlterColumnChange {
SetDataType(DataType),
SetNullable(bool),
SetDefault(DefaultValue),
DropDefault,
}Expand description
Column alteration type.
Variants§
SetDataType(DataType)
Change the data type.
SetNullable(bool)
Set or remove NOT NULL constraint.
SetDefault(DefaultValue)
Set a new default value.
DropDefault
Remove the default value.
Trait Implementations§
Source§impl Clone for AlterColumnChange
impl Clone for AlterColumnChange
Source§fn clone(&self) -> AlterColumnChange
fn clone(&self) -> AlterColumnChange
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 AlterColumnChange
impl Debug for AlterColumnChange
Source§impl PartialEq for AlterColumnChange
impl PartialEq for AlterColumnChange
impl StructuralPartialEq for AlterColumnChange
Auto Trait Implementations§
impl Freeze for AlterColumnChange
impl RefUnwindSafe for AlterColumnChange
impl Send for AlterColumnChange
impl Sync for AlterColumnChange
impl Unpin for AlterColumnChange
impl UnwindSafe for AlterColumnChange
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