pub struct IndexerConfig {
pub chunk_config: ChunkConfig,
pub embed_config: EmbeddingConfig,
pub include_patterns: Vec<String>,
pub exclude_patterns: Vec<String>,
pub debounce_ms: u64,
pub max_file_size: u64,
pub force: bool,
}Expand description
Configuration for the indexer.
Fields§
§chunk_config: ChunkConfigChunk configuration
embed_config: EmbeddingConfigEmbedding configuration
include_patterns: Vec<String>Include patterns (glob)
exclude_patterns: Vec<String>Exclude patterns (glob)
debounce_ms: u64Debounce duration for the file watcher (milliseconds)
max_file_size: u64Maximum file size to index (bytes)
force: boolSkip the content-hash short-circuit and reindex every eligible file
Implementations§
Source§impl IndexerConfig
impl IndexerConfig
Sourcepub fn should_process_path(&self, path: &Path) -> bool
pub fn should_process_path(&self, path: &Path) -> bool
Whether path is eligible for indexing given include/exclude patterns.
Trait Implementations§
Source§impl Clone for IndexerConfig
impl Clone for IndexerConfig
Source§impl Debug for IndexerConfig
impl Debug for IndexerConfig
Auto Trait Implementations§
impl Freeze for IndexerConfig
impl RefUnwindSafe for IndexerConfig
impl Send for IndexerConfig
impl Sync for IndexerConfig
impl Unpin for IndexerConfig
impl UnsafeUnpin for IndexerConfig
impl UnwindSafe for IndexerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().