pub struct SchemaDiff {
pub domains_added: Vec<DomainInfo>,
pub domains_removed: Vec<DomainInfo>,
pub domains_modified: Vec<DomainModification>,
pub predicates_added: Vec<PredicateInfo>,
pub predicates_removed: Vec<PredicateInfo>,
pub predicates_modified: Vec<PredicateModification>,
pub variables_added: Vec<(String, String)>,
pub variables_removed: Vec<(String, String)>,
pub variables_modified: Vec<VariableModification>,
}Expand description
Comparison result for two symbol tables.
Contains detailed information about all differences between two schemas.
Fields§
§domains_added: Vec<DomainInfo>Domains added in the new schema.
domains_removed: Vec<DomainInfo>Domains removed from the old schema.
domains_modified: Vec<DomainModification>Domains modified between schemas.
predicates_added: Vec<PredicateInfo>Predicates added in the new schema.
predicates_removed: Vec<PredicateInfo>Predicates removed from the old schema.
predicates_modified: Vec<PredicateModification>Predicates modified between schemas.
variables_added: Vec<(String, String)>Variables added in the new schema.
variables_removed: Vec<(String, String)>Variables removed from the old schema.
variables_modified: Vec<VariableModification>Variables with changed types.
Implementations§
Source§impl SchemaDiff
impl SchemaDiff
Sourcepub fn has_changes(&self) -> bool
pub fn has_changes(&self) -> bool
Check if there are any differences.
Sourcepub fn is_backward_compatible(&self) -> bool
pub fn is_backward_compatible(&self) -> bool
Check if the diff represents backward-compatible changes.
A change is backward-compatible if it only adds new entities or expands existing ones without removing or breaking existing definitions.
Sourcepub fn summary(&self) -> DiffSummary
pub fn summary(&self) -> DiffSummary
Get a summary of the changes.
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 · 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 Default for SchemaDiff
impl Default for SchemaDiff
Source§fn default() -> SchemaDiff
fn default() -> SchemaDiff
Returns the “default value” for a type. Read more
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