Skip to main content

CodeIndexSourceStore

Trait CodeIndexSourceStore 

Source
pub trait CodeIndexSourceStore: Send + Sync {
    // Required method
    fn code_file_fingerprints(
        &self,
        repository_id: String,
    ) -> StorageFuture<'_, Vec<CodeFileFingerprint>>;

    // Provided methods
    fn code_file_fingerprints_for_scope(
        &self,
        source_scope: String,
    ) -> StorageFuture<'_, Vec<CodeFileFingerprint>> { ... }
    fn code_file_fingerprints_for_paths(
        &self,
        source_scope: String,
        paths: Vec<String>,
    ) -> StorageFuture<'_, Vec<CodeFileFingerprint>> { ... }
    fn code_file_candidate_paths_for_scope(
        &self,
        source_scope: String,
        _path_filters: Vec<String>,
        _language_filters: Vec<String>,
        _exclude_generated: bool,
        _limit: usize,
    ) -> StorageFuture<'_, Vec<String>> { ... }
    fn code_file_candidate_paths_for_query_scope(
        &self,
        source_scope: String,
        _query: String,
        path_filters: Vec<String>,
        language_filters: Vec<String>,
        exclude_generated: bool,
        limit: usize,
    ) -> StorageFuture<'_, Vec<String>> { ... }
    fn repository_documents_for_scope(
        &self,
        source_scope: String,
        _path_filters: Vec<String>,
        _max_files: usize,
        _max_bytes: usize,
    ) -> StorageFuture<'_, Vec<IndexedRepositoryDocument>> { ... }
}
Expand description

Bounded indexed-source reads used by incremental planning and fallbacks.

Required Methods§

Provided Methods§

Source

fn code_file_fingerprints_for_scope( &self, source_scope: String, ) -> StorageFuture<'_, Vec<CodeFileFingerprint>>

Source

fn code_file_fingerprints_for_paths( &self, source_scope: String, paths: Vec<String>, ) -> StorageFuture<'_, Vec<CodeFileFingerprint>>

Source

fn code_file_candidate_paths_for_scope( &self, source_scope: String, _path_filters: Vec<String>, _language_filters: Vec<String>, _exclude_generated: bool, _limit: usize, ) -> StorageFuture<'_, Vec<String>>

Source

fn code_file_candidate_paths_for_query_scope( &self, source_scope: String, _query: String, path_filters: Vec<String>, language_filters: Vec<String>, exclude_generated: bool, limit: usize, ) -> StorageFuture<'_, Vec<String>>

Source

fn repository_documents_for_scope( &self, source_scope: String, _path_filters: Vec<String>, _max_files: usize, _max_bytes: usize, ) -> StorageFuture<'_, Vec<IndexedRepositoryDocument>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§