pub struct ResultEntry {
pub metric: String,
pub value: f64,
pub n: Option<u64>,
pub aggregation: Aggregation,
pub uncertainty: Option<Uncertainty>,
pub by: Option<Map<String, Value>>,
pub samples_ref: Option<String>,
}Expand description
One score.
Fields§
§metric: StringMetric as a registry id, {ns}/{name} (for example core/pass_rate).
value: f64The score.
n: Option<u64>Number of samples the score was computed over.
aggregation: AggregationHow value was derived from the samples.
uncertainty: Option<Uncertainty>Uncertainty the producer computed.
by: Option<Map<String, Value>>The partition this score applies to (for example which grader).
samples_ref: Option<String>attachments[].path of the per-sample rows this score summarises.
Trait Implementations§
Source§impl Clone for ResultEntry
impl Clone for ResultEntry
Source§impl Debug for ResultEntry
impl Debug for ResultEntry
Source§impl<'de> Deserialize<'de> for ResultEntry
impl<'de> Deserialize<'de> for ResultEntry
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 ResultEntry
impl JsonSchema for ResultEntry
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 ResultEntry
impl PartialEq for ResultEntry
Source§impl Serialize for ResultEntry
impl Serialize for ResultEntry
impl StructuralPartialEq for ResultEntry
Auto Trait Implementations§
impl Freeze for ResultEntry
impl RefUnwindSafe for ResultEntry
impl Send for ResultEntry
impl Sync for ResultEntry
impl Unpin for ResultEntry
impl UnsafeUnpin for ResultEntry
impl UnwindSafe for ResultEntry
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