pub struct Migration {
pub up: Option<MigrationFile>,
pub down: Option<MigrationFile>,
}
Expand description
A migration has 2 files: one up and one down
Fields§
§up: Option<MigrationFile>
The Up file
down: Option<MigrationFile>
The Down file
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 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