pub struct RunResult {
pub eval: String,
pub run_id: String,
pub metric: String,
pub value: Option<f64>,
pub label: Option<String>,
pub by: Option<Map<String, Value>>,
pub from: Vec<String>,
}Expand description
The Card’s verdict on one run for one metric.
Fields§
§eval: StringThe Eval record the run belongs to, {ns}/{name} (no @seq: runs
belong to the record, not to a version). Must be the record of one of
this Card’s core/uses_eval relations.
run_id: StringThe run judged. Must be in this Card’s used set for eval.
metric: StringMetric as a registry id, {ns}/{name} (for example core/pass).
value: Option<f64>The verdict as a number. At least one of value and label is present.
label: Option<String>The verdict as a label (for example pass, fail). At least one of
value and label is present.
by: Option<Map<String, Value>>The partition this verdict applies to (for example which grader).
from: Vec<String>Keys of the run’s metrics the verdict was derived from. Informational;
the hub does not recompute.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunResult
impl<'de> Deserialize<'de> for RunResult
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 RunResult
impl JsonSchema for RunResult
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 moreimpl StructuralPartialEq for RunResult
Auto Trait Implementations§
impl Freeze for RunResult
impl RefUnwindSafe for RunResult
impl Send for RunResult
impl Sync for RunResult
impl Unpin for RunResult
impl UnsafeUnpin for RunResult
impl UnwindSafe for RunResult
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