pub struct SchemaDiff {
pub tables_added: Vec<String>,
pub tables_removed: Vec<String>,
pub tables_modified: HashMap<String, TableDiff>,
pub views_added: Vec<String>,
pub views_removed: Vec<String>,
pub views_modified: HashMap<String, ViewDiff>,
pub functions_added: Vec<String>,
pub functions_removed: Vec<String>,
pub functions_modified: HashMap<String, FunctionDiff>,
pub types_added: Vec<String>,
pub types_removed: Vec<String>,
pub types_modified: HashMap<String, TypeDiff>,
}Expand description
A complete diff between two schema snapshots
This represents all changes needed to transform schema A into schema B.
Fields§
§tables_added: Vec<String>Tables that were added
tables_removed: Vec<String>Tables that were removed
tables_modified: HashMap<String, TableDiff>Tables that were modified
views_added: Vec<String>Views that were added
views_removed: Vec<String>Views that were removed
views_modified: HashMap<String, ViewDiff>Views that were modified
functions_added: Vec<String>Functions that were added
functions_removed: Vec<String>Functions that were removed
functions_modified: HashMap<String, FunctionDiff>Functions that were modified
types_added: Vec<String>Types that were added
types_removed: Vec<String>Types that were removed
types_modified: HashMap<String, TypeDiff>Types that were modified
Implementations§
Source§impl SchemaDiff
impl SchemaDiff
Trait Implementations§
Source§impl Clone for SchemaDiff
impl Clone for SchemaDiff
Source§fn clone(&self) -> SchemaDiff
fn clone(&self) -> SchemaDiff
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemaDiff
impl Debug for SchemaDiff
Source§impl<'de> Deserialize<'de> for SchemaDiff
impl<'de> Deserialize<'de> for SchemaDiff
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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 ==.Source§impl Serialize for SchemaDiff
impl Serialize 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