pub struct FuzzyConfig {
pub exact_match: f64,
pub starts_with: f64,
pub contains: f64,
pub word_match: f64,
pub similarity_threshold: f64,
pub similarity_weight: f64,
}Expand description
Fuzzy search scoring configuration.
Fields§
§exact_match: f64Score for exact name match
starts_with: f64Score for name starts with query
contains: f64Score for name contains query
word_match: f64Score for each word match
similarity_threshold: f64Minimum similarity threshold for Levenshtein matching (0.0-1.0)
similarity_weight: f64Weight multiplier for Levenshtein similarity bonus
Trait Implementations§
Source§impl Clone for FuzzyConfig
impl Clone for FuzzyConfig
Source§fn clone(&self) -> FuzzyConfig
fn clone(&self) -> FuzzyConfig
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 FuzzyConfig
impl Debug for FuzzyConfig
Source§impl Default for FuzzyConfig
impl Default for FuzzyConfig
Source§impl<'de> Deserialize<'de> for FuzzyConfig
impl<'de> Deserialize<'de> for FuzzyConfig
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 FuzzyConfig
impl RefUnwindSafe for FuzzyConfig
impl Send for FuzzyConfig
impl Sync for FuzzyConfig
impl Unpin for FuzzyConfig
impl UnwindSafe for FuzzyConfig
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