1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Hanzo Cloud API
*
* 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/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RiskBand {
/// Day is the day the band covers.
#[serde(rename = "day", skip_serializing_if = "Option::is_none")]
pub day: Option<String>,
/// Dim is the dimension, named as this API publishes it.
#[serde(rename = "dim", skip_serializing_if = "Option::is_none")]
pub dim: Option<String>,
/// Kind is the subject kind it was computed over.
#[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
pub kind: Option<String>,
/// N is how many subject-days went into it.
#[serde(rename = "n", skip_serializing_if = "Option::is_none")]
pub n: Option<i32>,
/// Orgs is how many organisations contributed, each weighted exactly one vote whatever its size. It is published so a reader can judge the band rather than trust it.
#[serde(rename = "orgs", skip_serializing_if = "Option::is_none")]
pub orgs: Option<i32>,
/// Q10 is the quiet end of the network's day: a tenth of contributing organisations sit at or below it.
#[serde(rename = "q10", skip_serializing_if = "Option::is_none")]
pub q10: Option<f64>,
/// Q50 is the network's median day.
#[serde(rename = "q50", skip_serializing_if = "Option::is_none")]
pub q50: Option<f64>,
/// Q90 is the busy end: a tenth of contributing organisations sit at or above it. It is the highest level published.
#[serde(rename = "q90", skip_serializing_if = "Option::is_none")]
pub q90: Option<f64>,
}
impl RiskBand {
pub fn new() -> RiskBand {
RiskBand {
day: None,
dim: None,
kind: None,
n: None,
orgs: None,
q10: None,
q50: None,
q90: None,
}
}
}