pub struct ScoringConfig {
pub weights: HeuristicWeights,
pub enable_advanced: bool,
pub custom_rules: Vec<CustomScoringRule>,
pub min_score_threshold: f64,
pub max_results: usize,
pub normalize_scores: bool,
}
Expand description
Scoring system configuration
Fields§
§weights: HeuristicWeights
Heuristic weights
enable_advanced: bool
Whether to enable advanced scoring features
custom_rules: Vec<CustomScoringRule>
Custom scoring rules
min_score_threshold: f64
Minimum score threshold for inclusion
max_results: usize
Maximum number of files to return (0 = unlimited)
normalize_scores: bool
Whether to normalize scores to 0-1 range
Trait Implementations§
Source§impl Clone for ScoringConfig
impl Clone for ScoringConfig
Source§fn clone(&self) -> ScoringConfig
fn clone(&self) -> ScoringConfig
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 ScoringConfig
impl Debug for ScoringConfig
Source§impl Default for ScoringConfig
impl Default for ScoringConfig
Source§impl<'de> Deserialize<'de> for ScoringConfig
impl<'de> Deserialize<'de> for ScoringConfig
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 Hash for ScoringConfig
impl Hash for ScoringConfig
Auto Trait Implementations§
impl Freeze for ScoringConfig
impl RefUnwindSafe for ScoringConfig
impl Send for ScoringConfig
impl Sync for ScoringConfig
impl Unpin for ScoringConfig
impl UnwindSafe for ScoringConfig
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