pub struct Candidate {
pub node_id: String,
pub node_type: String,
pub file_path: Option<String>,
pub signature: Option<String>,
pub doc_comment: Option<String>,
pub description: Option<String>,
pub source_code: Option<String>,
pub hop_distance: u32,
pub modified_at: Option<i64>,
pub connecting_relation: String,
pub token_estimate: usize,
}Expand description
A raw candidate node discovered during graph traversal (before scoring).
Carries all metadata needed for scoring and budget fitting.
Fields§
§node_id: String§node_type: String§file_path: Option<String>§signature: Option<String>§doc_comment: Option<String>§description: Option<String>§source_code: Option<String>§hop_distance: u32Number of hops from the nearest target node.
modified_at: Option<i64>§connecting_relation: StringThe edge relation that connected this node to the traversal.
token_estimate: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for Candidate
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnsafeUnpin for Candidate
impl UnwindSafe for Candidate
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