pub struct FuzzyOptions {
pub enabled: bool,
pub max_edits: u32,
pub prefix_length: u32,
pub threshold: f32,
}Expand description
Fuzzy search options.
Fields§
§enabled: boolWhether to enable fuzzy matching.
max_edits: u32Maximum edit distance (Levenshtein).
prefix_length: u32Prefix length that must match exactly.
threshold: f32Similarity threshold (0.0-1.0).
Implementations§
Source§impl FuzzyOptions
impl FuzzyOptions
Trait Implementations§
Source§impl Clone for FuzzyOptions
impl Clone for FuzzyOptions
Source§fn clone(&self) -> FuzzyOptions
fn clone(&self) -> FuzzyOptions
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 FuzzyOptions
impl Debug for FuzzyOptions
Source§impl Default for FuzzyOptions
impl Default for FuzzyOptions
Source§impl<'de> Deserialize<'de> for FuzzyOptions
impl<'de> Deserialize<'de> for FuzzyOptions
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
Source§impl PartialEq for FuzzyOptions
impl PartialEq for FuzzyOptions
Source§impl Serialize for FuzzyOptions
impl Serialize for FuzzyOptions
impl StructuralPartialEq for FuzzyOptions
Auto Trait Implementations§
impl Freeze for FuzzyOptions
impl RefUnwindSafe for FuzzyOptions
impl Send for FuzzyOptions
impl Sync for FuzzyOptions
impl Unpin for FuzzyOptions
impl UnwindSafe for FuzzyOptions
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