pub enum UndoTarget {
Last,
Version(MigrationVersion),
Count(usize),
}Expand description
How many / which versions to undo.
Last and Count walk the currently-applied versions in descending
version order, which is not necessarily installation order — with
out_of_order enabled a lower version can be installed later. Undo is
defined on version order so that it is the inverse of migrate.
Variants§
Last
Undo the highest currently-applied version.
Version(MigrationVersion)
Undo all migrations above this version (the target version itself stays applied).
Count(usize)
Undo the N highest currently-applied versions, highest first.
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 (const: unstable) · 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