pub struct Config {Show 13 fields
pub path: PathBuf,
pub include_extensions: Option<Vec<String>>,
pub exclude_extensions: Option<Vec<String>>,
pub match_patterns: Option<Vec<GlobMatcher>>,
pub output_file: Option<PathBuf>,
pub dry_run: bool,
pub stats_only: bool,
pub gitignore_path: Option<PathBuf>,
pub max_file_size: u64,
pub compress: bool,
pub full_match_patterns: Option<Vec<GlobMatcher>>,
pub token_budget: Option<usize>,
pub tokenizer: TokenizerKind,
}Fields§
§path: PathBuf§include_extensions: Option<Vec<String>>§exclude_extensions: Option<Vec<String>>§match_patterns: Option<Vec<GlobMatcher>>§output_file: Option<PathBuf>§dry_run: bool§stats_only: bool§gitignore_path: Option<PathBuf>§max_file_size: u64§compress: bool§full_match_patterns: Option<Vec<GlobMatcher>>§token_budget: Option<usize>§tokenizer: TokenizerKindImplementations§
Source§impl Config
impl Config
pub fn should_include_extension(&self, ext: &str) -> bool
Sourcepub fn should_include_by_match(&self, file_name: &str) -> bool
pub fn should_include_by_match(&self, file_name: &str) -> bool
Check if a file name matches any of the configured glob patterns. Returns true if no patterns are set or if the name matches at least one pattern.
Sourcepub fn is_full_match(&self, file_name: &str) -> bool
pub fn is_full_match(&self, file_name: &str) -> bool
Check if a file should always get full content (skip compression). Returns true if –full-match patterns are set and the file name matches.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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