pub struct NumericEval {
pub criterion: String,
pub min: f64,
pub max: f64,
pub threshold: f64,
pub comparator: Comparator,
pub name: Option<String>,
}Expand description
Score a plain-English criterion on a numeric scale and compare it to a threshold.
Fields§
§criterion: StringThe criterion the judge scores.
min: f64Inclusive lower bound of the scale.
max: f64Inclusive upper bound of the scale.
threshold: f64The passing threshold.
comparator: ComparatorHow the score is compared to threshold. Defaults to >=.
name: Option<String>Optional human label for reports.
Trait Implementations§
Source§impl Clone for NumericEval
impl Clone for NumericEval
Source§fn clone(&self) -> NumericEval
fn clone(&self) -> NumericEval
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 NumericEval
impl Debug for NumericEval
Source§impl<'de> Deserialize<'de> for NumericEval
impl<'de> Deserialize<'de> for NumericEval
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 JsonSchema for NumericEval
impl JsonSchema for NumericEval
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for NumericEval
impl PartialEq for NumericEval
Source§fn eq(&self, other: &NumericEval) -> bool
fn eq(&self, other: &NumericEval) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NumericEval
impl Serialize for NumericEval
impl StructuralPartialEq for NumericEval
Auto Trait Implementations§
impl Freeze for NumericEval
impl RefUnwindSafe for NumericEval
impl Send for NumericEval
impl Sync for NumericEval
impl Unpin for NumericEval
impl UnsafeUnpin for NumericEval
impl UnwindSafe for NumericEval
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