pub enum MigrationStep {
AddDomain(String, usize),
RemoveDomain(String),
ResizeDomain(String, usize),
AddPredicate(String, Vec<String>),
RemovePredicate(String),
RenamePredicate(String, String),
AddVariable(String, String),
RemoveVariable(String),
UpdateVariableType(String, String),
Custom(String),
}Expand description
Migration step
Variants§
AddDomain(String, usize)
Add a domain
RemoveDomain(String)
Remove a domain
ResizeDomain(String, usize)
Resize a domain
AddPredicate(String, Vec<String>)
Add a predicate
RemovePredicate(String)
Remove a predicate
RenamePredicate(String, String)
Rename a predicate
AddVariable(String, String)
Add a variable binding
RemoveVariable(String)
Remove a variable binding
UpdateVariableType(String, String)
Update variable type
Custom(String)
Custom migration code
Implementations§
Source§impl MigrationStep
impl MigrationStep
pub fn description(&self) -> String
pub fn is_reversible(&self) -> bool
Trait Implementations§
Source§impl Clone for MigrationStep
impl Clone for MigrationStep
Source§fn clone(&self) -> MigrationStep
fn clone(&self) -> MigrationStep
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 MigrationStep
impl RefUnwindSafe for MigrationStep
impl Send for MigrationStep
impl Sync for MigrationStep
impl Unpin for MigrationStep
impl UnwindSafe for MigrationStep
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