Skip to main content

lynx_protocol/
lib.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Serialize, Deserialize)]
4pub struct SymbolRecord {
5    pub symbol_id: String,
6    pub symbol_name: String,
7    pub file_path: String,
8    pub start_line: usize,
9    pub end_line: usize,
10}
11
12#[derive(Debug, Clone, Serialize, Deserialize)]
13pub struct CodeChunk {
14    pub id: String,
15    pub file_path: String,
16    pub start_line: usize,
17    pub end_line: usize,
18    pub raw_content: String,
19    pub symbols_defined: Vec<String>,
20}
21
22#[derive(Debug, Clone, Serialize, Deserialize)]
23pub struct DiscoveryResult {
24    pub symbol_id: String,
25    pub score: f32,
26    pub file_path: String,
27    pub start_line: usize,
28    pub end_line: usize,
29}