pub struct AnalysisConfig {
pub analyze_content: bool,
pub compute_tokens: bool,
pub count_lines: bool,
pub detect_binary_content: bool,
pub language_overrides: HashMap<String, Language>,
pub custom_extensions: HashMap<String, Language>,
pub enable_caching: bool,
pub cache_dir: PathBuf,
pub cache_ttl: u64,
pub token_budget: Option<usize>,
}
Expand description
Analysis configuration
Fields§
§analyze_content: bool
Whether to analyze file content (not just metadata)
compute_tokens: bool
Whether to compute token estimates
count_lines: bool
Whether to count lines
detect_binary_content: bool
Whether to detect binary files by content (in addition to extension)
language_overrides: HashMap<String, Language>
Languages that require special handling
custom_extensions: HashMap<String, Language>
Custom file type mappings (extension -> language)
enable_caching: bool
Whether to cache analysis results
cache_dir: PathBuf
Cache directory (relative to project root or absolute)
cache_ttl: u64
Cache TTL in seconds
token_budget: Option<usize>
Token budget for intelligent file selection
Trait Implementations§
Source§impl Clone for AnalysisConfig
impl Clone for AnalysisConfig
Source§fn clone(&self) -> AnalysisConfig
fn clone(&self) -> AnalysisConfig
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 AnalysisConfig
impl Debug for AnalysisConfig
Source§impl Default for AnalysisConfig
impl Default for AnalysisConfig
Source§impl<'de> Deserialize<'de> for AnalysisConfig
impl<'de> Deserialize<'de> for AnalysisConfig
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
Source§impl Hash for AnalysisConfig
impl Hash for AnalysisConfig
Auto Trait Implementations§
impl Freeze for AnalysisConfig
impl RefUnwindSafe for AnalysisConfig
impl Send for AnalysisConfig
impl Sync for AnalysisConfig
impl Unpin for AnalysisConfig
impl UnwindSafe for AnalysisConfig
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