pub enum TableChange {
AddColumn(String, Type),
ChangeColumn(String, Type, Rc<dyn Fn(&mut Type)>),
RenameColumn(String, String),
DropColumn(String),
CustomLine(String),
}Expand description
An enum set that represents a single change on a table
Variants§
AddColumn(String, Type)
Add a column of a name and type
ChangeColumn(String, Type, Rc<dyn Fn(&mut Type)>)
Change an existing column
RenameColumn(String, String)
Simply rename a column
DropColumn(String)
Remove a column
CustomLine(String)
Add some custom SQL if all else fails
Trait Implementations§
Source§impl Clone for TableChange
impl Clone for TableChange
Source§fn clone(&self) -> TableChange
fn clone(&self) -> TableChange
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 moreAuto Trait Implementations§
impl Freeze for TableChange
impl !RefUnwindSafe for TableChange
impl !Send for TableChange
impl !Sync for TableChange
impl Unpin for TableChange
impl !UnwindSafe for TableChange
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