pub struct SearchOptions {
pub sort: Option<Vec<SearchSort>>,
pub depth: usize,
pub limit: Option<usize>,
pub inclusive: Option<bool>,
pub predictive: Option<bool>,
pub corrective: Option<usize>,
pub prepend_prefix: Option<bool>,
}Expand description
Radix Tree Search Options
Modified Modes:
Predictive - If no match is found, but a partial match(es) are found,
will traverse down all partial matching children
Options:
Sort - Ordered list of sorting. Must only contain at most one
of a SearchSort. If a invalid configuration is provided, no sorting occurs.
Depth - How many depths from the matching node to traverse for results
Limit - Maximum amount of results to retrieve before ending search early
Inclusive - Includes the result if query itself matches
Corrective - Corrects N mistakes in query path
Prepend Prefix - Prepend s from query to all suffix results
Fields§
§sort: Option<Vec<SearchSort>>§depth: usize§limit: Option<usize>§inclusive: Option<bool>§predictive: Option<bool>§corrective: Option<usize>§prepend_prefix: Option<bool>Trait Implementations§
Source§impl Clone for SearchOptions
impl Clone for SearchOptions
Source§fn clone(&self) -> SearchOptions
fn clone(&self) -> SearchOptions
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 moreSource§impl Debug for SearchOptions
impl Debug for SearchOptions
Source§impl<'de> Deserialize<'de> for SearchOptions
impl<'de> Deserialize<'de> for SearchOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SearchOptions
impl RefUnwindSafe for SearchOptions
impl Send for SearchOptions
impl Sync for SearchOptions
impl Unpin for SearchOptions
impl UnwindSafe for SearchOptions
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