Skip to main content

hanzo_client/models/
run_point.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct RunPoint {
16    /// At is when the run was recorded.
17    #[serde(rename = "at", skip_serializing_if = "Option::is_none")]
18    pub at: Option<String>,
19    /// Delta is the change in score from the previous run for this model, absent on the first. It is the number the whole surface exists to make visible.
20    #[serde(rename = "delta", skip_serializing_if = "Option::is_none")]
21    pub delta: Option<f64>,
22    /// N is how many items the run covered. Two runs are only comparable at the same n, which is why it travels with every point rather than being assumed.
23    #[serde(rename = "n", skip_serializing_if = "Option::is_none")]
24    pub n: Option<i32>,
25    /// Run is the measurement id these attempts were recorded under.
26    #[serde(rename = "run", skip_serializing_if = "Option::is_none")]
27    pub run: Option<String>,
28    /// Score is accuracy over the items this run covered, as a percentage.
29    #[serde(rename = "score", skip_serializing_if = "Option::is_none")]
30    pub score: Option<f64>,
31}
32
33impl RunPoint {
34    pub fn new() -> RunPoint {
35        RunPoint {
36            at: None,
37            delta: None,
38            n: None,
39            run: None,
40            score: None,
41        }
42    }
43}
44