pub struct Node {Show 19 fields
pub id: String,
pub kind: String,
pub name: String,
pub path: String,
pub line_start: u32,
pub line_end: u32,
pub language: String,
pub churn: f64,
pub coupling: f64,
pub community: i64,
pub in_degree: i64,
pub out_degree: i64,
pub exported: bool,
pub is_dead_candidate: bool,
pub dead_reason: Option<String>,
pub complexity: f64,
pub is_test_file: bool,
pub test_count: i64,
pub is_tested: bool,
}Expand description
A node in the code knowledge graph as stored in (and read from) the DuckDB database.
Fields§
§id: StringStable unique identifier, e.g. fn:src/lib.rs:parse or file:src/lib.rs.
kind: StringString form of [NodeKind], e.g. "Function", "File".
name: String§path: StringRepo-relative file path.
line_start: u32§line_end: u32§language: String§churn: f64Normalised commit-frequency score over the last 90 days (0.0–1.0).
coupling: f64Normalised co-change coupling score (0.0–1.0).
community: i64Community ID assigned by the Louvain clustering pass (0 = unclustered).
in_degree: i64§out_degree: i64§exported: boolWhether the symbol is publicly exported from its file.
is_dead_candidate: boolWhether dead-code analysis flagged this node.
dead_reason: Option<String>§complexity: f64Cyclomatic-complexity-derived score (higher = more complex).
is_test_file: bool§test_count: i64Number of test functions in this file (only set on File nodes).
is_tested: boolWhether at least one test exercises this symbol.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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