pub struct MigrationResult {
pub files_processed: Vec<FileResult>,
pub files_written: usize,
pub backups_created: Vec<PathBuf>,
pub performance_summary: Option<PerformanceSummary>,
}Expand description
Result of a migration operation
Fields§
§files_processed: Vec<FileResult>§files_written: usize§backups_created: Vec<PathBuf>§performance_summary: Option<PerformanceSummary>Implementations§
Source§impl MigrationResult
impl MigrationResult
pub fn new() -> Self
pub fn merge(&mut self, other: MigrationResult)
pub fn total_files(&self) -> usize
pub fn files_with_changes(&self) -> usize
pub fn total_processing_time(&self) -> Duration
Trait Implementations§
Source§impl Debug for MigrationResult
impl Debug for MigrationResult
Source§impl Default for MigrationResult
impl Default for MigrationResult
Auto Trait Implementations§
impl Freeze for MigrationResult
impl RefUnwindSafe for MigrationResult
impl Send for MigrationResult
impl Sync for MigrationResult
impl Unpin for MigrationResult
impl UnsafeUnpin for MigrationResult
impl UnwindSafe for MigrationResult
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more