#[non_exhaustive]pub struct StoredFormMigration {
pub rewritten: Vec<MigratedItem>,
pub current: u64,
pub failed: Vec<MigrationFailure>,
}Expand description
What one sweep of a source’s stored forms did.
The default — nothing rewritten, nothing current, nothing failed — is the answer of a source that writes every item in the one form it has always written.
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.rewritten: Vec<MigratedItem>Each item rewritten into the current form, or under a dry run each item that would be.
current: u64How many of the items examined already held the current form — one holding nothing a stored form could spell included — and were sent nothing.
failed: Vec<MigrationFailure>Each item held in a superseded form that was refused or not written.
Trait Implementations§
Source§impl Clone for StoredFormMigration
impl Clone for StoredFormMigration
Source§impl Debug for StoredFormMigration
impl Debug for StoredFormMigration
Source§impl Default for StoredFormMigration
impl Default for StoredFormMigration
impl Eq for StoredFormMigration
Source§impl PartialEq for StoredFormMigration
impl PartialEq for StoredFormMigration
impl StructuralPartialEq for StoredFormMigration
Auto Trait Implementations§
impl Forget for StoredFormMigration
impl Freeze for StoredFormMigrationwhere
*const u8 is !null: Freeze,
PhantomData<MigratedItem>: Freeze,
PhantomData<MigrationFailure>: Freeze,
impl Move for StoredFormMigration
impl RefUnwindSafe for StoredFormMigration
impl Send for StoredFormMigrationwhere
RawVecInner: Send,
impl Sync for StoredFormMigrationwhere
RawVecInner: Sync,
impl Unpin for StoredFormMigration
impl UnsafeUnpin for StoredFormMigrationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<MigratedItem>: UnsafeUnpin,
PhantomData<MigrationFailure>: UnsafeUnpin,
impl UnwindSafe for StoredFormMigrationwhere
RawVecInner: UnwindSafe,
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