pub struct SearchQuery {
pub text: String,
pub case_sensitive: bool,
pub word_match: bool,
pub is_regex: bool,
pub base_dir: Option<PathBuf>,
pub exclude_patterns: Vec<String>,
pub include_patterns: Vec<String>,
pub verbose: bool,
pub quiet: bool,
}Expand description
Query parameters for searching
Fields§
§text: String§case_sensitive: bool§word_match: bool§is_regex: bool§base_dir: Option<PathBuf>§exclude_patterns: Vec<String>§include_patterns: Vec<String>§verbose: bool§quiet: boolImplementations§
Source§impl SearchQuery
impl SearchQuery
pub fn new(text: String) -> Self
pub fn with_word_match(self, word_match: bool) -> Self
pub fn with_regex(self, is_regex: bool) -> Self
pub fn with_includes(self, includes: Vec<String>) -> Self
pub fn with_case_sensitive(self, case_sensitive: bool) -> Self
pub fn with_base_dir(self, base_dir: PathBuf) -> Self
pub fn with_exclusions(self, exclusions: Vec<String>) -> Self
pub fn with_verbose(self, verbose: bool) -> Self
pub fn with_quiet(self, quiet: bool) -> Self
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 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