pub struct MigrationReport {
pub added: Vec<String>,
pub unchanged: Vec<String>,
pub narrowed: Vec<String>,
pub empty: Vec<PathBuf>,
pub unreadable: Vec<(PathBuf, String)>,
}Expand description
What a migration did, per alias.
Reported rather than summarised as a count. A migration is a one-way door and the thing somebody needs afterwards is the ability to look up one device by name and see what happened to it.
Fields§
§added: Vec<String>Aliases the destination did not have.
unchanged: Vec<String>Aliases that were already there, pointing at the same device.
narrowed: Vec<String>Aliases that were already there and whose record changed —
which, under SimRegistry::merge, can only mean consent
narrowed.
empty: Vec<PathBuf>Sources that opened and held nothing.
unreadable: Vec<(PathBuf, String)>Sources that would not open, and why.
Trait Implementations§
Source§impl Clone for MigrationReport
impl Clone for MigrationReport
Source§fn clone(&self) -> MigrationReport
fn clone(&self) -> MigrationReport
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 Debug for MigrationReport
impl Debug for MigrationReport
Source§impl Default for MigrationReport
impl Default for MigrationReport
Source§fn default() -> MigrationReport
fn default() -> MigrationReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MigrationReport
impl RefUnwindSafe for MigrationReport
impl Send for MigrationReport
impl Sync for MigrationReport
impl Unpin for MigrationReport
impl UnsafeUnpin for MigrationReport
impl UnwindSafe for MigrationReport
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