pub struct QueryOptions {
pub sort: SortKey,
pub desc: bool,
pub case: CaseMode,
pub include_hidden_system: bool,
pub regex_mode: bool,
pub regex_scope: RegexScope,
}Expand description
Per-query options controlling sort order, case handling, visibility, and whole-query regex mode — the engine-side form the wire options convert into.
Fields§
§sort: SortKeyWhich column the materialized result is sorted by (name, size, date…).
desc: boolSort descending when set, ascending otherwise.
case: CaseModeCase-sensitivity policy applied to matchers (smart/sensitive/insensitive).
Hidden/system entries (and everything under such branches) are skipped unless this is set — the UI toggle maps straight here.
regex_mode: boolTreat the whole query text as one regex (regex_mode bit0) — the
engine skips parsing and compiles a single regex_scope matcher.
regex_scope: RegexScopeWhich haystack the whole-query regex runs against (ignored unless
regex_mode).
Trait Implementations§
Source§impl Clone for QueryOptions
impl Clone for QueryOptions
Source§fn clone(&self) -> QueryOptions
fn clone(&self) -> QueryOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QueryOptions
impl Debug for QueryOptions
Source§impl Default for QueryOptions
impl Default for QueryOptions
Source§impl From<FmfQueryOptions> for QueryOptions
The single wire→engine options conversion — both boundaries (FFI
fmf_query and pipe dispatch) go through this (ADR-0018). regex_mode
is a packed u32: bit0 = whole-query regex on, bit1 = scope (0 name /
1 path).
impl From<FmfQueryOptions> for QueryOptions
The single wire→engine options conversion — both boundaries (FFI
fmf_query and pipe dispatch) go through this (ADR-0018). regex_mode
is a packed u32: bit0 = whole-query regex on, bit1 = scope (0 name /
1 path).
Source§fn from(o: FmfQueryOptions) -> Self
fn from(o: FmfQueryOptions) -> Self
Source§impl PartialEq for QueryOptions
impl PartialEq for QueryOptions
impl Copy for QueryOptions
impl Eq for QueryOptions
impl StructuralPartialEq for QueryOptions
Auto Trait Implementations§
impl Freeze for QueryOptions
impl RefUnwindSafe for QueryOptions
impl Send for QueryOptions
impl Sync for QueryOptions
impl Unpin for QueryOptions
impl UnsafeUnpin for QueryOptions
impl UnwindSafe for QueryOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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