#[non_exhaustive]pub struct MigrationFailure {
pub item: MigratedItem,
pub reason: String,
}Expand description
One item a sweep found in a superseded form and could not rewrite.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.item: MigratedItemThe item, and the form it is still held in.
reason: StringWhy it was refused or not written, as the source said it.
Implementations§
Source§impl MigrationFailure
impl MigrationFailure
Sourcepub fn new(item: MigratedItem, reason: impl Into<String>) -> Self
pub fn new(item: MigratedItem, reason: impl Into<String>) -> Self
item, left in its superseded form for reason.
Trait Implementations§
Source§impl Clone for MigrationFailure
impl Clone for MigrationFailure
Source§impl Debug for MigrationFailure
impl Debug for MigrationFailure
impl Eq for MigrationFailure
Source§impl PartialEq for MigrationFailure
impl PartialEq for MigrationFailure
impl StructuralPartialEq for MigrationFailure
Auto Trait Implementations§
impl Forget for MigrationFailure
impl Freeze for MigrationFailure
impl Move for MigrationFailure
impl RefUnwindSafe for MigrationFailure
impl Send for MigrationFailure
impl Sync for MigrationFailure
impl Unpin for MigrationFailure
impl UnsafeUnpin for MigrationFailure
impl UnwindSafe for MigrationFailure
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