pub struct SearchOptions<'a> {Show 18 fields
pub path: &'a Path,
pub queries: &'a [String],
pub files_only: bool,
pub custom_ignores: &'a [String],
pub exclude_filenames: bool,
pub reranker: &'a str,
pub frequency_search: bool,
pub exact: bool,
pub language: Option<&'a str>,
pub max_results: Option<usize>,
pub max_bytes: Option<usize>,
pub max_tokens: Option<usize>,
pub allow_tests: bool,
pub no_merge: bool,
pub merge_threshold: Option<usize>,
pub dry_run: bool,
pub session: Option<&'a str>,
pub timeout: u64,
}Expand description
Options for performing a search
Fields§
§path: &'a Path§queries: &'a [String]§files_only: bool§custom_ignores: &'a [String]§exclude_filenames: bool§reranker: &'a str§frequency_search: bool§exact: bool§language: Option<&'a str>§max_results: Option<usize>§max_bytes: Option<usize>§max_tokens: Option<usize>§allow_tests: bool§no_merge: bool§merge_threshold: Option<usize>§dry_run: bool§session: Option<&'a str>§timeout: u64Auto Trait Implementations§
impl<'a> Freeze for SearchOptions<'a>
impl<'a> RefUnwindSafe for SearchOptions<'a>
impl<'a> Send for SearchOptions<'a>
impl<'a> Sync for SearchOptions<'a>
impl<'a> Unpin for SearchOptions<'a>
impl<'a> UnwindSafe for SearchOptions<'a>
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> 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