pub struct QueryOptions {
pub count_only: bool,
pub files_only: bool,
pub max_results: usize,
pub type_filter: Vec<String>,
pub context_lines: usize,
pub decompress: bool,
pub threads: usize,
pub multiline: bool,
pub archive: bool,
pub binary: bool,
pub word_boundary: bool,
}Expand description
Tunable knobs that control query execution behaviour.
Fields§
§count_only: boolOnly report match counts (not line content).
files_only: boolOnly list file paths containing matches.
max_results: usizeMaximum number of results to return (0 = unlimited).
type_filter: Vec<String>File extensions to restrict the search to.
context_lines: usizeNumber of context lines to show before and after each match.
decompress: boolTransparently decompress archives (e.g. .gz) when scanning.
threads: usizeNumber of Rayon threads to use for parallel work.
multiline: boolDot-matches-newline mode for regex matching.
archive: boolSearch inside archive files (zip, tar.gz).
binary: boolSearch binary files as if they were text.
word_boundary: boolMatch only at word boundaries.
Trait Implementations§
Source§impl Clone for QueryOptions
impl Clone for QueryOptions
Source§fn clone(&self) -> QueryOptions
fn clone(&self) -> QueryOptions
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 QueryOptions
impl Debug for QueryOptions
Source§impl Default for QueryOptions
impl Default for QueryOptions
Source§fn default() -> QueryOptions
fn default() -> QueryOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QueryOptions
impl RefUnwindSafe for QueryOptions
impl Send for QueryOptions
impl Sync for QueryOptions
impl Unpin for QueryOptions
impl UnsafeUnpin for QueryOptions
impl UnwindSafe for QueryOptions
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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