pub enum UndoTarget {
Last,
Version(MigrationVersion),
Count(usize),
}Expand description
How many / which versions to undo.
Variants§
Last
Undo the single most recently applied migration.
Version(MigrationVersion)
Undo all migrations above this version (the target version itself stays applied).
Count(usize)
Undo the last N applied migrations in reverse order.
Trait Implementations§
Source§impl Clone for UndoTarget
impl Clone for UndoTarget
Source§fn clone(&self) -> UndoTarget
fn clone(&self) -> UndoTarget
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 UndoTarget
impl RefUnwindSafe for UndoTarget
impl Send for UndoTarget
impl Sync for UndoTarget
impl Unpin for UndoTarget
impl UnsafeUnpin for UndoTarget
impl UnwindSafe for UndoTarget
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