pub struct FileSystemContextConfig {
pub root_path: PathBuf,
pub include_patterns: Vec<String>,
pub exclude_patterns: Vec<String>,
pub max_file_size: usize,
pub enable_cache: bool,
}Expand description
File system context provider configuration
Fields§
§root_path: PathBufRoot directory to index
include_patterns: Vec<String>Include patterns (glob syntax: [“/*.rs”, “/*.md”])
exclude_patterns: Vec<String>Exclude patterns (glob syntax: [“/target/”, “/node_modules/”])
max_file_size: usizeMaximum file size in bytes (default: 1MB)
enable_cache: boolWhether to enable cache (default: true)
Implementations§
Source§impl FileSystemContextConfig
impl FileSystemContextConfig
Sourcepub fn with_include_patterns(self, patterns: Vec<String>) -> Self
pub fn with_include_patterns(self, patterns: Vec<String>) -> Self
Set include patterns
Sourcepub fn with_exclude_patterns(self, patterns: Vec<String>) -> Self
pub fn with_exclude_patterns(self, patterns: Vec<String>) -> Self
Set exclude patterns
Sourcepub fn with_max_file_size(self, size: usize) -> Self
pub fn with_max_file_size(self, size: usize) -> Self
Set max file size
Sourcepub fn with_cache(self, enable: bool) -> Self
pub fn with_cache(self, enable: bool) -> Self
Enable/disable cache
Trait Implementations§
Source§impl Clone for FileSystemContextConfig
impl Clone for FileSystemContextConfig
Source§fn clone(&self) -> FileSystemContextConfig
fn clone(&self) -> FileSystemContextConfig
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 moreAuto Trait Implementations§
impl Freeze for FileSystemContextConfig
impl RefUnwindSafe for FileSystemContextConfig
impl Send for FileSystemContextConfig
impl Sync for FileSystemContextConfig
impl Unpin for FileSystemContextConfig
impl UnsafeUnpin for FileSystemContextConfig
impl UnwindSafe for FileSystemContextConfig
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