pub struct Migration {
pub from_version: u32,
pub to_version: u32,
pub migrate: MigrationFn,
}Expand description
A single migration step.
Fields§
§from_version: u32The version this migration upgrades from.
to_version: u32The version this migration upgrades to.
migrate: MigrationFnThe function that performs the migration.
Auto Trait Implementations§
impl Forget for Migration
impl Freeze for Migration
impl Move for Migration
impl RefUnwindSafe for Migration
impl Send for Migration
impl Sync for Migration
impl Unpin for Migration
impl UnsafeUnpin for Migration
impl UnwindSafe for Migration
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