pub struct EvaluationScore {
pub name: String,
pub value: f64,
pub threshold: f64,
pub passed: bool,
pub rationale: Option<String>,
}Expand description
One persisted per-case score.
Fields§
§name: StringStable scorer name.
value: f64Normalized score from zero through one.
threshold: f64Per-case passing threshold.
passed: boolWhether this score meets its threshold.
rationale: Option<String>Optional evaluator explanation.
Trait Implementations§
Source§impl Clone for EvaluationScore
impl Clone for EvaluationScore
Source§fn clone(&self) -> EvaluationScore
fn clone(&self) -> EvaluationScore
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 EvaluationScore
impl Debug for EvaluationScore
Source§impl<'de> Deserialize<'de> for EvaluationScore
impl<'de> Deserialize<'de> for EvaluationScore
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 EvaluationScore
impl PartialEq for EvaluationScore
Source§impl Serialize for EvaluationScore
impl Serialize for EvaluationScore
impl StructuralPartialEq for EvaluationScore
Auto Trait Implementations§
impl Freeze for EvaluationScore
impl RefUnwindSafe for EvaluationScore
impl Send for EvaluationScore
impl Sync for EvaluationScore
impl Unpin for EvaluationScore
impl UnsafeUnpin for EvaluationScore
impl UnwindSafe for EvaluationScore
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