pub struct DiffEntry {
pub kind: String,
pub category: String,
pub path: String,
pub detail: String,
}Expand description
One discrete change recorded in a SchemaDiff.
Fields§
§kind: StringKind of change: "add", "remove", "breaking". Matches the
bucket the entry appears in; duplicated on the entry so a flat
serialised stream is self-describing.
category: StringCategory of item affected: "label", "rel_type", "parameter",
"label_property", "rel_type_property",
"rel_type_endpoints", "parameter_type",
"parameter_default".
path: StringStable path identifier (Person, Person.age, ACTED_IN.role,
$since_year). Sort key for deterministic output.
detail: StringHuman-readable description of the change. Stable wording for snapshot tests.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DiffEntry
impl<'de> Deserialize<'de> for DiffEntry
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 DiffEntry
impl StructuralPartialEq for DiffEntry
Auto Trait Implementations§
impl Freeze for DiffEntry
impl RefUnwindSafe for DiffEntry
impl Send for DiffEntry
impl Sync for DiffEntry
impl Unpin for DiffEntry
impl UnsafeUnpin for DiffEntry
impl UnwindSafe for DiffEntry
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.