pub struct SearchQuery {
pub pattern: String,
pub is_regex: bool,
pub case_insensitive: bool,
pub root: PathBuf,
pub glob_filter: Option<String>,
pub max_results: Option<usize>,
}Expand description
Parameters for a search query.
Fields§
§pattern: StringPattern to search for.
is_regex: boolWhether the pattern is a regex (vs literal string).
case_insensitive: boolCase-insensitive matching.
root: PathBufRoot path to scope the search.
glob_filter: Option<String>Optional glob filter for filenames (e.g., "*.rs").
max_results: Option<usize>Maximum number of results to return.
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 · 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