pub enum MigrationState {
Applied,
Pending,
Failed,
Skipped,
}Expand description
Migration state enum indicating the status of a migration.
Variants§
Applied
Migration has been successfully applied to the database.
Pending
Migration is pending and has not yet been applied.
Failed
Migration failed during execution.
Skipped
Migration was skipped (e.g., manually marked as complete).
Implementations§
Source§impl MigrationState
impl MigrationState
Sourcepub fn color_code(&self) -> &'static str
pub fn color_code(&self) -> &'static str
Get the ANSI color code for this migration state.
Sourcepub fn reset_code() -> &'static str
pub fn reset_code() -> &'static str
Get the ANSI reset code.
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 Default for MigrationState
impl Default for MigrationState
Source§fn default() -> MigrationState
fn default() -> MigrationState
Returns the “default value” for a type. Read more
Source§impl Display for MigrationState
impl Display for MigrationState
Source§impl PartialEq for MigrationState
impl PartialEq for MigrationState
impl Copy 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 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