pub enum MigrationKind {
Versioned(MigrationVersion),
Repeatable,
Undo(MigrationVersion),
}Expand description
Type-safe encoding of the migration variant.
Versioned migrations always have a version; repeatable migrations never do.
This eliminates the Option<MigrationVersion> + MigrationType redundancy.
Variants§
Versioned(MigrationVersion)
A versioned migration with an associated version number.
Repeatable
A repeatable migration that is re-applied whenever its checksum changes.
Undo(MigrationVersion)
An undo migration that reverses a specific versioned migration.
Trait Implementations§
Source§impl Clone for MigrationKind
impl Clone for MigrationKind
Source§fn clone(&self) -> MigrationKind
fn clone(&self) -> MigrationKind
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 MigrationKind
impl RefUnwindSafe for MigrationKind
impl Send for MigrationKind
impl Sync for MigrationKind
impl Unpin for MigrationKind
impl UnsafeUnpin for MigrationKind
impl UnwindSafe for MigrationKind
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