pub struct SchemaDiff {
pub added: Vec<Field>,
pub dropped: Vec<String>,
pub changed: Vec<TypeChange>,
pub nullable: Vec<String>,
}Expand description
The schema delta between a module’s declared fields and its migrated columns.
Fields§
§added: Vec<Field>Declared fields with no column yet — safe, additive ADD COLUMN.
dropped: Vec<String>Columns present in the migrations but no longer declared — potential drops (or the
old half of a rename). Reported; only emitted under --force.
changed: Vec<TypeChange>Differences from generator defaults; preserve existing SQL and report warnings.
nullable: Vec<String>Non-optional model fields whose SQL columns still allow NULL (backfill pending).
Implementations§
Trait Implementations§
Source§impl Debug for SchemaDiff
impl Debug for SchemaDiff
Source§impl Default for SchemaDiff
impl Default for SchemaDiff
impl Eq for SchemaDiff
Source§impl PartialEq for SchemaDiff
impl PartialEq for SchemaDiff
impl StructuralPartialEq for SchemaDiff
Auto Trait Implementations§
impl Freeze for SchemaDiff
impl RefUnwindSafe for SchemaDiff
impl Send for SchemaDiff
impl Sync for SchemaDiff
impl Unpin for SchemaDiff
impl UnsafeUnpin for SchemaDiff
impl UnwindSafe for SchemaDiff
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.