pub struct Migration {
pub version: i64,
pub name: &'static str,
pub sql: &'static str,
}Expand description
A single migration step.
Fields§
§version: i64Strictly increasing version number; must be unique.
name: &'static strHuman-readable label, recorded for audit/debugging.
sql: &'static strThe SQL to execute. May contain multiple statements separated by ;.
Auto Trait Implementations§
impl Freeze 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