pub struct ScoreComponents {Show 14 fields
pub final_score: f64,
pub doc_score: f64,
pub readme_score: f64,
pub import_score: f64,
pub path_score: f64,
pub test_link_score: f64,
pub churn_score: f64,
pub centrality_score: f64,
pub entrypoint_score: f64,
pub examples_score: f64,
pub priority_boost: f64,
pub template_boost: f64,
pub raw_scores: RawScoreComponents,
pub weights: HeuristicWeights,
}Expand description
Complete score breakdown for a file
Fields§
§final_score: f64Final weighted score
doc_score: f64Individual component scores
readme_score: f64§import_score: f64§path_score: f64§test_link_score: f64§churn_score: f64§centrality_score: f64§entrypoint_score: f64§examples_score: f64§priority_boost: f64Boost components
template_boost: f64§raw_scores: RawScoreComponentsRaw component scores before normalization
weights: HeuristicWeightsApplied weights
Implementations§
Trait Implementations§
Source§impl Clone for ScoreComponents
impl Clone for ScoreComponents
Source§fn clone(&self) -> ScoreComponents
fn clone(&self) -> ScoreComponents
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 moreAuto Trait Implementations§
impl Freeze for ScoreComponents
impl RefUnwindSafe for ScoreComponents
impl Send for ScoreComponents
impl Sync for ScoreComponents
impl Unpin for ScoreComponents
impl UnwindSafe for ScoreComponents
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