pub struct SchemaDiff {
pub added: Vec<Field>,
pub dropped: 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.
Implementations§
Trait Implementations§
Source§impl Debug for SchemaDiff
impl Debug for SchemaDiff
Source§impl Default for SchemaDiff
impl Default for SchemaDiff
Source§fn default() -> SchemaDiff
fn default() -> SchemaDiff
Returns the “default value” for a type. Read more
impl Eq for SchemaDiff
Source§impl PartialEq for SchemaDiff
impl PartialEq for SchemaDiff
Source§fn eq(&self, other: &SchemaDiff) -> bool
fn eq(&self, other: &SchemaDiff) -> bool
Tests for
self and other values to be equal, and is used by ==.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.