pub struct SearchRequest<'a> {
pub pattern: &'a str,
pub directory: &'a Path,
pub project_root: &'a Path,
pub include: Option<&'a str>,
pub max_results: usize,
pub crp_mode: CrpMode,
pub respect_gitignore: bool,
pub allow_secret_paths: bool,
pub anchored: bool,
pub exclude: Option<&'a str>,
pub exclude_pattern: Option<&'a str>,
}Expand description
Inputs for one existing Local regex-search operation.
Fields§
§pattern: &'a str§directory: &'a Path§project_root: &'a Path§include: Option<&'a str>§max_results: usize§crp_mode: CrpMode§respect_gitignore: bool§allow_secret_paths: bool§anchored: bool§exclude: Option<&'a str>§exclude_pattern: Option<&'a str>Trait Implementations§
Source§impl<'a> Clone for SearchRequest<'a>
impl<'a> Clone for SearchRequest<'a>
impl<'a> Copy for SearchRequest<'a>
Auto Trait Implementations§
impl<'a> Forget for SearchRequest<'a>
impl<'a> Freeze for SearchRequest<'a>
impl<'a> Move for SearchRequest<'a>
impl<'a> RefUnwindSafe for SearchRequest<'a>
impl<'a> Send for SearchRequest<'a>
impl<'a> Sync for SearchRequest<'a>
impl<'a> Unpin for SearchRequest<'a>
impl<'a> UnsafeUnpin for SearchRequest<'a>
impl<'a> UnwindSafe for SearchRequest<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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