pub struct Node {
pub id: i64,
pub name: String,
pub kind: NodeKind,
pub language: Language,
pub file_path: String,
pub line_start: u32,
pub line_end: u32,
pub content: Option<String>,
}Expand description
A node in the code graph — represents a code entity.
Fields§
§id: i64Unique identifier (auto-generated)
name: StringEntity name (function name, class name, etc.)
kind: NodeKindEntity kind
language: LanguageProgramming language
file_path: StringSource file path (relative to repo root)
line_start: u32Start line number (1-indexed)
line_end: u32End line number (1-indexed)
content: Option<String>Optional source code excerpt
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
impl StructuralPartialEq for Node
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