pub struct Migration {
pub sql: String,
pub summary: String,
pub destructive: bool,
pub needs_manual_edit: bool,
}Fields§
§sql: StringThe full migration file body (plain SQL, sqlx-compatible).
summary: StringHuman-readable one-liner, e.g. products: add archived_at.
destructive: boolTrue when data is lost (dropped tables or columns).
needs_manual_edit: boolTrue when the generated SQL contains a TODO the user must edit before applying (a new NOT NULL column without a default needs a backfill).
Implementations§
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