pub struct VersionScoreInput {
pub multiplier: f64,
pub class: &'static str,
pub distance: Option<u32>,
pub query: Option<LanguageTargetQueryFactor>,
}Expand description
Precomputed version-match input for ScoringPolicy::score (spec §3.5).
Computed by the search route from the mode + per-facet classification.
Fields§
§multiplier: f64The multiplier to apply to trust.
class: &'static str"satisfies" | "near_miss" | "silent" | "unknown".
distance: Option<u32>Component distance for near misses.
query: Option<LanguageTargetQueryFactor>Echo of the query-side element that drove the outcome.
Trait Implementations§
Source§impl Clone for VersionScoreInput
impl Clone for VersionScoreInput
Source§fn clone(&self) -> VersionScoreInput
fn clone(&self) -> VersionScoreInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VersionScoreInput
impl RefUnwindSafe for VersionScoreInput
impl Send for VersionScoreInput
impl Sync for VersionScoreInput
impl Unpin for VersionScoreInput
impl UnsafeUnpin for VersionScoreInput
impl UnwindSafe for VersionScoreInput
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