pub struct SimpleIndexerConfig { /* private fields */ }Expand description
Configuration for SimpleIndexer.
Implementations§
Source§impl SimpleIndexerConfig
 
impl SimpleIndexerConfig
Sourcepub fn new(workspace_root: PathBuf) -> Self
 
pub fn new(workspace_root: PathBuf) -> Self
Builds a configuration using VTCode’s legacy layout as defaults.
Sourcepub fn with_index_dir(self, index_dir: impl Into<PathBuf>) -> Self
 
pub fn with_index_dir(self, index_dir: impl Into<PathBuf>) -> Self
Updates the index directory used for persisted metadata.
Sourcepub fn add_allowed_dir(self, path: impl Into<PathBuf>) -> Self
 
pub fn add_allowed_dir(self, path: impl Into<PathBuf>) -> Self
Adds an allowed directory that should be indexed even if hidden or inside an excluded parent.
Sourcepub fn add_excluded_dir(self, path: impl Into<PathBuf>) -> Self
 
pub fn add_excluded_dir(self, path: impl Into<PathBuf>) -> Self
Adds an additional excluded directory to skip during traversal.
Toggles whether hidden directories (prefix .) are ignored.
Sourcepub fn workspace_root(&self) -> &Path
 
pub fn workspace_root(&self) -> &Path
Workspace root accessor.
Trait Implementations§
Source§impl Clone for SimpleIndexerConfig
 
impl Clone for SimpleIndexerConfig
Source§fn clone(&self) -> SimpleIndexerConfig
 
fn clone(&self) -> SimpleIndexerConfig
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 SimpleIndexerConfig
impl RefUnwindSafe for SimpleIndexerConfig
impl Send for SimpleIndexerConfig
impl Sync for SimpleIndexerConfig
impl Unpin for SimpleIndexerConfig
impl UnwindSafe for SimpleIndexerConfig
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