pub struct Migration {
pub version: u32,
pub label: String,
pub sql: String,
}Expand description
One versioned schema change: (version, label, sql). Versions must be
strictly increasing in the slice handed to MigrationRunner::new.
Fields§
§version: u32§label: String§sql: StringImplementations§
Trait Implementations§
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