pub struct Evidence {
pub node_id: u64,
pub node_type: String,
pub name: String,
pub file_path: String,
pub line_number: Option<u32>,
pub snippet: Option<String>,
}Expand description
Evidence backing a code claim.
Each piece of evidence links to a specific node in the CodeGraph
that supports one or more references in the claim.
Fields§
§node_id: u64The code-unit ID in the graph.
node_type: StringHuman-readable type label (e.g. “function”, “type”, “module”).
name: StringSimple name of the code unit.
file_path: StringFile path where the code unit is defined.
line_number: Option<u32>Starting line number (if available).
snippet: Option<String>A short code snippet or signature (if available).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Evidence
impl RefUnwindSafe for Evidence
impl Send for Evidence
impl Sync for Evidence
impl Unpin for Evidence
impl UnsafeUnpin for Evidence
impl UnwindSafe for Evidence
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