pub struct Score {
pub value: f64,
pub threshold: f64,
}Expand description
A numeric score in [0.0, 1.0] with a configurable pass threshold.
Each evaluator produces a Score for its metric. The threshold is
evaluator-specific, allowing different metrics to have different
pass/fail criteria.
Fields§
§value: f64The numeric score, clamped to [0.0, 1.0].
threshold: f64The minimum value required to pass. Defaults to 0.5.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Score
impl<'de> Deserialize<'de> for Score
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
impl Copy for Score
Auto Trait Implementations§
impl Freeze for Score
impl RefUnwindSafe for Score
impl Send for Score
impl Sync for Score
impl Unpin for Score
impl UnsafeUnpin for Score
impl UnwindSafe for Score
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