pub struct SchemaDiff {
pub tables_added: Vec<TableInfo>,
pub tables_removed: Vec<String>,
pub tables_modified: Vec<TableModification>,
}Expand description
Differences between two schemas
Fields§
§tables_added: Vec<TableInfo>Tables that exist only in the new schema
tables_removed: Vec<String>Tables that exist only in the old schema
tables_modified: Vec<TableModification>Tables that exist in both but have differences
Implementations§
Source§impl SchemaDiff
impl SchemaDiff
Sourcepub fn has_changes(&self) -> bool
pub fn has_changes(&self) -> bool
Check if there are any differences
Trait Implementations§
Source§impl Debug for SchemaDiff
impl Debug 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 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