pub struct CodeContext {
pub files: Vec<FileContext>,
pub symbols: Vec<Symbol>,
pub references: Vec<SymbolReference>,
pub total_tokens: usize,
}Expand description
Code context for AI providers
Fields§
§files: Vec<FileContext>Files included in the context
symbols: Vec<Symbol>Symbols in the context
references: Vec<SymbolReference>Symbol references
total_tokens: usizeTotal tokens in the context
Trait Implementations§
Source§impl Clone for CodeContext
impl Clone for CodeContext
Source§fn clone(&self) -> CodeContext
fn clone(&self) -> CodeContext
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 CodeContext
impl Debug for CodeContext
Source§impl<'de> Deserialize<'de> for CodeContext
impl<'de> Deserialize<'de> for CodeContext
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 CodeContext
impl RefUnwindSafe for CodeContext
impl Send for CodeContext
impl Sync for CodeContext
impl Unpin for CodeContext
impl UnwindSafe for CodeContext
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