pub struct Migration {
pub version: u32,
pub description: &'static str,
pub up: &'static str,
}Expand description
A database migration owned by a module.
Fields§
§version: u32Monotonically increasing version number for this module.
description: &'static strHuman-readable description.
up: &'static strSQL to apply (forward only for now).
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