pub struct MigrationStep {
pub version: i64,
pub description: &'static str,
}Expand description
A single forward-only migration step.
The struct intentionally does not contain the SQL itself — each backend
defines its own step list as &[(i64, &str, &str)] tuples of
(version, description, sql).
Fields§
§version: i64Monotonically increasing version number, starting at 1.
description: &'static strHuman-readable description of what this step does.
Trait Implementations§
Source§impl Clone for MigrationStep
impl Clone for MigrationStep
Source§fn clone(&self) -> MigrationStep
fn clone(&self) -> MigrationStep
Returns a duplicate of the value. Read more
1.0.0 · 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 MigrationStep
impl Debug for MigrationStep
impl Copy for MigrationStep
Auto Trait Implementations§
impl Freeze for MigrationStep
impl RefUnwindSafe for MigrationStep
impl Send for MigrationStep
impl Sync for MigrationStep
impl Unpin for MigrationStep
impl UnsafeUnpin for MigrationStep
impl UnwindSafe for MigrationStep
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