pub struct CodeDiffEntry {
pub node_id: String,
pub kind: String,
pub name: String,
pub change_type: CodeDiffChangeType,
pub old_hash: Option<String>,
pub new_hash: Option<String>,
}Expand description
A single entry in a CodeGraph diff.
Fields§
§node_id: StringThe CodeNode ID (e.g., “func:brain/signal_fusion.py::fuse”).
kind: StringThe kind of object.
name: StringThe name of the object.
change_type: CodeDiffChangeTypeWhat changed.
old_hash: Option<String>Old body hash (None for added nodes).
new_hash: Option<String>New body hash (None for removed nodes).
Trait Implementations§
Source§impl Clone for CodeDiffEntry
impl Clone for CodeDiffEntry
Source§fn clone(&self) -> CodeDiffEntry
fn clone(&self) -> CodeDiffEntry
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 CodeDiffEntry
impl Debug for CodeDiffEntry
Source§impl PartialEq for CodeDiffEntry
impl PartialEq for CodeDiffEntry
Source§fn eq(&self, other: &CodeDiffEntry) -> bool
fn eq(&self, other: &CodeDiffEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CodeDiffEntry
Auto Trait Implementations§
impl Freeze for CodeDiffEntry
impl RefUnwindSafe for CodeDiffEntry
impl Send for CodeDiffEntry
impl Sync for CodeDiffEntry
impl Unpin for CodeDiffEntry
impl UnsafeUnpin for CodeDiffEntry
impl UnwindSafe for CodeDiffEntry
Blanket Implementations§
impl<T> Allocation for T
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