pub struct SchemaDiff {
pub adds: Vec<DiffEntry>,
pub removes: Vec<DiffEntry>,
pub breaking: Vec<DiffEntry>,
}Expand description
Structured diff between two schemas.
Iteration order of each field is deterministic (BTreeMap-backed
internally), so the serialised JSON is suitable for snapshot tests
and CI attestation.
Fields§
§adds: Vec<DiffEntry>Additive-only changes: new labels, rels, parameters, and optional properties.
removes: Vec<DiffEntry>Removals of previously-declared items.
breaking: Vec<DiffEntry>Changes that are structurally backwards-incompatible.
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 Default for SchemaDiff
impl Default for SchemaDiff
Source§fn default() -> SchemaDiff
fn default() -> SchemaDiff
Returns the “default value” for a type. Read more
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
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 Eq 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.