pub struct MigrateReport {
pub migrations_applied: usize,
pub total_time_ms: i32,
pub details: Vec<MigrateDetail>,
pub hooks_executed: usize,
pub hooks_time_ms: i32,
pub skipped: Vec<SkippedMigration>,
}Expand description
Report returned after a migrate operation.
Fields§
§migrations_applied: usizeNumber of migrations that were applied in this run.
total_time_ms: i32Total execution time of all migrations in milliseconds.
details: Vec<MigrateDetail>Per-migration details for each applied migration.
hooks_executed: usizeNumber of lifecycle hooks that were executed.
hooks_time_ms: i32Total execution time of all hooks in milliseconds.
skipped: Vec<SkippedMigration>Migrations that were pending but skipped by a require guard under
guards.on_require_fail = "skip".
Previously a skip left no trace in the report at all — only an INFO
log line, which both --json and --quiet suppress. A pipeline reading
migrations_applied had no way to tell a deliberate skip from there
being nothing to do.
Trait Implementations§
Source§impl Debug for MigrateReport
impl Debug for MigrateReport
Auto Trait Implementations§
impl Freeze for MigrateReport
impl RefUnwindSafe for MigrateReport
impl Send for MigrateReport
impl Sync for MigrateReport
impl Unpin for MigrateReport
impl UnsafeUnpin for MigrateReport
impl UnwindSafe for MigrateReport
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