pub struct GraphDiff {
pub added_items: Vec<ItemDiff>,
pub removed_items: Vec<ItemDiff>,
pub modified_items: Vec<ItemModification>,
pub added_relationships: Vec<RelationshipDiff>,
pub removed_relationships: Vec<RelationshipDiff>,
pub stats: DiffStats,
}Expand description
A diff between two knowledge graphs.
Fields§
§added_items: Vec<ItemDiff>Items added (present in new, not in old).
removed_items: Vec<ItemDiff>Items removed (present in old, not in new).
modified_items: Vec<ItemModification>Items modified (present in both, but changed).
added_relationships: Vec<RelationshipDiff>Relationships added.
removed_relationships: Vec<RelationshipDiff>Relationships removed.
stats: DiffStatsSummary statistics.
Implementations§
Source§impl GraphDiff
impl GraphDiff
Sourcepub fn compute(old_graph: &KnowledgeGraph, new_graph: &KnowledgeGraph) -> Self
pub fn compute(old_graph: &KnowledgeGraph, new_graph: &KnowledgeGraph) -> Self
Computes the diff between two graphs.
old_graph is the baseline (e.g., main branch).
new_graph is the target (e.g., current HEAD).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphDiff
impl RefUnwindSafe for GraphDiff
impl Send for GraphDiff
impl Sync for GraphDiff
impl Unpin for GraphDiff
impl UnwindSafe for GraphDiff
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more