pub enum MigrationState {
Pending,
Applied,
Failed,
Missing,
Outdated,
OutOfOrder,
BelowBaseline,
Ignored,
Baseline,
Undone,
}Expand description
The state of a migration.
Variants§
Pending
Migration file exists on disk but has not been applied yet.
Applied
Migration has been successfully applied to the database.
Failed
Migration execution failed (recorded in history as unsuccessful).
Missing
Migration is recorded in history but its file is missing from disk.
Outdated
Repeatable migration whose checksum has changed since last application.
OutOfOrder
Versioned migration with a version lower than the highest applied version.
BelowBaseline
Versioned migration with a version at or below the baseline.
Ignored
Migration was skipped (e.g. filtered by environment).
Baseline
A baseline marker entry in the history table.
Undone
Migration was applied but subsequently reverted by an undo operation.
Trait Implementations§
Source§impl Clone for MigrationState
impl Clone for MigrationState
Source§fn clone(&self) -> MigrationState
fn clone(&self) -> MigrationState
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 moreSource§impl Debug for MigrationState
impl Debug for MigrationState
Source§impl Display for MigrationState
impl Display for MigrationState
Source§impl PartialEq for MigrationState
impl PartialEq for MigrationState
Source§impl Serialize for MigrationState
impl Serialize for MigrationState
impl Eq for MigrationState
impl StructuralPartialEq for MigrationState
Auto Trait Implementations§
impl Freeze for MigrationState
impl RefUnwindSafe for MigrationState
impl Send for MigrationState
impl Sync for MigrationState
impl Unpin for MigrationState
impl UnsafeUnpin for MigrationState
impl UnwindSafe for MigrationState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.