pub struct SearchQuery {
pub pattern: String,
pub path_glob: Option<String>,
pub case_insensitive: bool,
pub context_lines: usize,
pub max_results: Option<usize>,
}Expand description
Parameters for a search call.
Fields§
§pattern: StringThe regular expression to match (ripgrep/Rust regex syntax).
path_glob: Option<String>Optional glob restricting which files are searched (e.g. **/*.log).
case_insensitive: boolCase-insensitive matching when true.
context_lines: usizeNumber of context lines to capture on each side of a match.
max_results: Option<usize>Override for the maximum number of matches returned.
Trait Implementations§
Source§impl Clone for SearchQuery
impl Clone for SearchQuery
Source§fn clone(&self) -> SearchQuery
fn clone(&self) -> SearchQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SearchQuery
impl RefUnwindSafe for SearchQuery
impl Send for SearchQuery
impl Sync for SearchQuery
impl Unpin for SearchQuery
impl UnsafeUnpin for SearchQuery
impl UnwindSafe for SearchQuery
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