pub struct Migrated<'t, FromSchema, T> { /* private fields */ }Expand description
Migrated provides a proof of migration.
This only needs to be provided for tables that are migrated from a previous table.
Implementations§
Source§impl<'t, FromSchema: 'static, T: Table> Migrated<'t, FromSchema, T>
impl<'t, FromSchema: 'static, T: Table> Migrated<'t, FromSchema, T>
Sourcepub fn map_fk_err(err: impl 't + FnOnce() -> Infallible) -> Self
pub fn map_fk_err(err: impl 't + FnOnce() -> Infallible) -> Self
Don’t migrate the remaining rows.
This can cause foreign key constraint violations, which is why an error callback needs to be provided.
Auto Trait Implementations§
impl<'t, FromSchema, T> Freeze for Migrated<'t, FromSchema, T>
impl<'t, FromSchema, T> !RefUnwindSafe for Migrated<'t, FromSchema, T>
impl<'t, FromSchema, T> !Send for Migrated<'t, FromSchema, T>
impl<'t, FromSchema, T> !Sync for Migrated<'t, FromSchema, T>
impl<'t, FromSchema, T> Unpin for Migrated<'t, FromSchema, T>where
T: Unpin,
impl<'t, FromSchema, T> !UnwindSafe for Migrated<'t, FromSchema, T>
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