pub struct VersionMatchMultipliers {
pub satisfies: f64,
pub neutral: f64,
pub floor: f64,
pub patch_step: f64,
pub minor_step: f64,
}Expand description
[version_match] — multipliers when query-side version filters are checked
against the chunk’s declared version constraints (spec §3.4).
Fields§
§satisfies: f64Chunk’s target satisfies the query constraint.
neutral: f64No constraint provided / target absent / unknowable. Neutral.
floor: f64Lower clamp on the permissive near-miss penalty (replaces unsatisfied).
patch_step: f64Penalty subtracted per patch-level distance step (permissive mode).
minor_step: f64Penalty subtracted per minor-level distance step (permissive mode).
Trait Implementations§
Source§impl Clone for VersionMatchMultipliers
impl Clone for VersionMatchMultipliers
Source§fn clone(&self) -> VersionMatchMultipliers
fn clone(&self) -> VersionMatchMultipliers
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 moreSource§impl Debug for VersionMatchMultipliers
impl Debug for VersionMatchMultipliers
Source§impl<'de> Deserialize<'de> for VersionMatchMultipliers
impl<'de> Deserialize<'de> for VersionMatchMultipliers
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 PartialEq for VersionMatchMultipliers
impl PartialEq for VersionMatchMultipliers
Source§fn eq(&self, other: &VersionMatchMultipliers) -> bool
fn eq(&self, other: &VersionMatchMultipliers) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VersionMatchMultipliers
impl Serialize for VersionMatchMultipliers
impl StructuralPartialEq for VersionMatchMultipliers
Auto Trait Implementations§
impl Freeze for VersionMatchMultipliers
impl RefUnwindSafe for VersionMatchMultipliers
impl Send for VersionMatchMultipliers
impl Sync for VersionMatchMultipliers
impl Unpin for VersionMatchMultipliers
impl UnsafeUnpin for VersionMatchMultipliers
impl UnwindSafe for VersionMatchMultipliers
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