pub struct SearchQuery<'query> {
pub pattern: &'query str,
pub regex: bool,
pub fuzzy: bool,
pub case_sensitive: bool,
pub file_pattern: Option<&'query str>,
pub context_lines: usize,
pub start_index: usize,
pub limit: usize,
pub retrieval_mode: SearchRetrievalMode,
}Expand description
Complete typed request for one bounded indexed-text search.
Fields§
§pattern: &'query strLiteral, regex, or fuzzy source pattern.
regex: boolWhether the source pattern is a regular expression.
fuzzy: boolWhether the source pattern is a fuzzy subsequence.
case_sensitive: boolWhether exact matching preserves source case.
file_pattern: Option<&'query str>Optional repository-relative glob.
context_lines: usizeContext lines retained before and after each match.
start_index: usizeNumber of exact matches skipped before result retention.
limit: usizeMaximum exact matches returned.
retrieval_mode: SearchRetrievalModeExplicit retrieval family; omitted adapters use lexical.
Trait Implementations§
Source§impl<'query> Clone for SearchQuery<'query>
impl<'query> Clone for SearchQuery<'query>
Source§fn clone(&self) -> SearchQuery<'query>
fn clone(&self) -> SearchQuery<'query>
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<'query> Debug for SearchQuery<'query>
impl<'query> Debug for SearchQuery<'query>
impl<'query> Copy for SearchQuery<'query>
Auto Trait Implementations§
impl<'query> Freeze for SearchQuery<'query>
impl<'query> RefUnwindSafe for SearchQuery<'query>
impl<'query> Send for SearchQuery<'query>
impl<'query> Sync for SearchQuery<'query>
impl<'query> Unpin for SearchQuery<'query>
impl<'query> UnwindSafe for SearchQuery<'query>
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