Skip to main content

hanzo_client/models/
score_config_view.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 ScoreConfigView {
16    /// Categories is the closed set of labels a CATEGORICAL score may carry.
17    #[serde(rename = "categories", skip_serializing_if = "Option::is_none")]
18    pub categories: Option<Vec<String>>,
19    /// CreatedAt is when the rubric was first declared.
20    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
21    pub created_at: Option<String>,
22    /// DataType is NUMERIC, CATEGORICAL or BOOLEAN, and is authoritative — a score recorded under this name cannot claim a different one.
23    #[serde(rename = "dataType", skip_serializing_if = "Option::is_none")]
24    pub data_type: Option<String>,
25    /// MaxValue is the inclusive ceiling a NUMERIC score must stay under, absent when unbounded.
26    #[serde(rename = "maxValue", skip_serializing_if = "Option::is_none")]
27    pub max_value: Option<f64>,
28    /// MinValue is the inclusive floor a NUMERIC score must clear, absent when unbounded.
29    #[serde(rename = "minValue", skip_serializing_if = "Option::is_none")]
30    pub min_value: Option<f64>,
31    /// Name is the score name this rubric governs.
32    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
33    pub name: Option<String>,
34    /// UpdatedAt is when it last changed.
35    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
36    pub updated_at: Option<String>,
37}
38
39impl ScoreConfigView {
40    pub fn new() -> ScoreConfigView {
41        ScoreConfigView {
42            categories: None,
43            created_at: None,
44            data_type: None,
45            max_value: None,
46            min_value: None,
47            name: None,
48            updated_at: None,
49        }
50    }
51}
52