pub struct MultiFieldScoreResult {
pub total: f64,
pub name_score: f64,
pub version_score: f64,
pub ecosystem_score: f64,
pub license_score: f64,
pub supplier_score: f64,
pub group_score: f64,
}Expand description
Result of multi-field scoring with per-field breakdown.
Fields§
§total: f64Total weighted score (0.0 - 1.0)
name_score: f64Name similarity score
version_score: f64Version match score
ecosystem_score: f64Ecosystem match score
license_score: f64License overlap score (Jaccard)
supplier_score: f64Supplier match score
group_score: f64Group/namespace match score
Implementations§
Trait Implementations§
Source§impl Clone for MultiFieldScoreResult
impl Clone for MultiFieldScoreResult
Source§fn clone(&self) -> MultiFieldScoreResult
fn clone(&self) -> MultiFieldScoreResult
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 MultiFieldScoreResult
impl Debug for MultiFieldScoreResult
Source§impl Default for MultiFieldScoreResult
impl Default for MultiFieldScoreResult
Source§fn default() -> MultiFieldScoreResult
fn default() -> MultiFieldScoreResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MultiFieldScoreResult
impl RefUnwindSafe for MultiFieldScoreResult
impl Send for MultiFieldScoreResult
impl Sync for MultiFieldScoreResult
impl Unpin for MultiFieldScoreResult
impl UnsafeUnpin for MultiFieldScoreResult
impl UnwindSafe for MultiFieldScoreResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more