pub struct SearchOptions {Show 26 fields
pub mode: SearchMode,
pub query: String,
pub path: PathBuf,
pub top_k: Option<usize>,
pub threshold: Option<f32>,
pub case_insensitive: bool,
pub whole_word: bool,
pub fixed_string: bool,
pub line_numbers: bool,
pub context_lines: usize,
pub before_context_lines: usize,
pub after_context_lines: usize,
pub recursive: bool,
pub json_output: bool,
pub jsonl_output: bool,
pub no_snippet: bool,
pub reindex: bool,
pub show_scores: bool,
pub show_filenames: bool,
pub files_with_matches: bool,
pub files_without_matches: bool,
pub exclude_patterns: Vec<String>,
pub respect_gitignore: bool,
pub full_section: bool,
pub rerank: bool,
pub rerank_model: Option<String>,
}
Fields§
§mode: SearchMode
§query: String
§path: PathBuf
§top_k: Option<usize>
§threshold: Option<f32>
§case_insensitive: bool
§whole_word: bool
§fixed_string: bool
§line_numbers: bool
§context_lines: usize
§before_context_lines: usize
§after_context_lines: usize
§recursive: bool
§json_output: bool
§jsonl_output: bool
§no_snippet: bool
§reindex: bool
§show_scores: bool
§show_filenames: bool
§files_with_matches: bool
§files_without_matches: bool
§exclude_patterns: Vec<String>
§respect_gitignore: bool
§full_section: bool
§rerank: bool
§rerank_model: Option<String>
Trait Implementations§
Source§impl Clone for SearchOptions
impl Clone for SearchOptions
Source§fn clone(&self) -> SearchOptions
fn clone(&self) -> SearchOptions
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 moreSource§impl Debug for SearchOptions
impl Debug for SearchOptions
Auto Trait Implementations§
impl Freeze for SearchOptions
impl RefUnwindSafe for SearchOptions
impl Send for SearchOptions
impl Sync for SearchOptions
impl Unpin for SearchOptions
impl UnwindSafe for SearchOptions
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