Skip to main content

hanzo_client/models/
benchmark.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 Benchmark {
16    /// what capability it measures
17    #[serde(rename = "axis", skip_serializing_if = "Option::is_none")]
18    pub axis: Option<String>,
19    /// the id every other op on this surface takes
20    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
21    pub id: Option<String>,
22    /// how many items it holds, when the set is fixed
23    #[serde(rename = "items", skip_serializing_if = "Option::is_none")]
24    pub items: Option<i32>,
25    /// whether the standardized harness runs it today
26    #[serde(rename = "native", skip_serializing_if = "Option::is_none")]
27    pub native: Option<bool>,
28    /// where the items come from
29    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
30    pub source: Option<String>,
31    /// the benchmark's published name
32    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
33    pub title: Option<String>,
34}
35
36impl Benchmark {
37    pub fn new() -> Benchmark {
38        Benchmark {
39            axis: None,
40            id: None,
41            items: None,
42            native: None,
43            source: None,
44            title: None,
45        }
46    }
47}
48