pub struct TargetContext {
pub node_id: String,
pub title: Option<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 token_estimate: usize,
}Expand description
Context for a target node — NEVER truncated. [GOAL-4.1a, 4.3]
Fields§
§node_id: StringNode ID.
title: Option<String>Node title.
file_path: Option<String>File path on disk (for source loading).
signature: Option<String>Function/class signature.
doc_comment: Option<String>Doc comment.
description: Option<String>Description.
source_code: Option<String>Source code loaded from disk.
token_estimate: usizeEstimated tokens for this target.
Implementations§
Trait Implementations§
Source§impl Clone for TargetContext
impl Clone for TargetContext
Source§fn clone(&self) -> TargetContext
fn clone(&self) -> TargetContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetContext
impl Debug for TargetContext
Auto Trait Implementations§
impl Freeze for TargetContext
impl RefUnwindSafe for TargetContext
impl Send for TargetContext
impl Sync for TargetContext
impl Unpin for TargetContext
impl UnsafeUnpin for TargetContext
impl UnwindSafe for TargetContext
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