pub enum SchemaMigrationExecutionOutcome {
AlreadyApplied,
Executed(MigrationRunOutcome),
}Expand description
SchemaMigrationExecutionOutcome
SchemaMigrationExecutionOutcome reports whether schema evolution skipped an
already-applied migration or delegated a planned migration to db::migration.
The lower migration outcome is preserved unchanged when execution occurs.
Variants§
AlreadyApplied
Executed(MigrationRunOutcome)
Implementations§
Source§impl SchemaMigrationExecutionOutcome
impl SchemaMigrationExecutionOutcome
Sourcepub const fn already_applied(self) -> bool
pub const fn already_applied(self) -> bool
Return whether schema evolution skipped execution because the registry already contains this migration id/version.
Sourcepub const fn migration_outcome(self) -> Option<MigrationRunOutcome>
pub const fn migration_outcome(self) -> Option<MigrationRunOutcome>
Return the lower migration-run outcome when execution occurred.
Trait Implementations§
Source§impl Clone for SchemaMigrationExecutionOutcome
impl Clone for SchemaMigrationExecutionOutcome
Source§fn clone(&self) -> SchemaMigrationExecutionOutcome
fn clone(&self) -> SchemaMigrationExecutionOutcome
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 moreSource§impl PartialEq for SchemaMigrationExecutionOutcome
impl PartialEq for SchemaMigrationExecutionOutcome
Source§fn eq(&self, other: &SchemaMigrationExecutionOutcome) -> bool
fn eq(&self, other: &SchemaMigrationExecutionOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SchemaMigrationExecutionOutcome
impl Eq for SchemaMigrationExecutionOutcome
impl StructuralPartialEq for SchemaMigrationExecutionOutcome
Auto Trait Implementations§
impl Freeze for SchemaMigrationExecutionOutcome
impl RefUnwindSafe for SchemaMigrationExecutionOutcome
impl Send for SchemaMigrationExecutionOutcome
impl Sync for SchemaMigrationExecutionOutcome
impl Unpin for SchemaMigrationExecutionOutcome
impl UnsafeUnpin for SchemaMigrationExecutionOutcome
impl UnwindSafe for SchemaMigrationExecutionOutcome
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