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
/*
* 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 RiskTopology {
/// Blend is how much of a closing window folds into the reference: 1 replaces it outright, less makes the reference expensive to move.
#[serde(rename = "blend", skip_serializing_if = "Option::is_none")]
pub blend: Option<f64>,
/// Depth is how deep each tree is. With Trees it sets how finely the space is partitioned, and therefore how much history it takes to fill.
#[serde(rename = "depth", skip_serializing_if = "Option::is_none")]
pub depth: Option<i32>,
/// Family is the KIND of model this candidate is: `halfspace` is an ensemble of half-space trees whose masses are counters, and it is the family this search grid ranks. The parameters below are that family's own — a family that does not partition space with trees has different ones — so read them against this.
#[serde(rename = "family", skip_serializing_if = "Option::is_none")]
pub family: Option<String>,
/// Review is the appetite this shape was tried at.
#[serde(rename = "review", skip_serializing_if = "Option::is_none")]
pub review: Option<f64>,
/// Trees is how many half-space trees the ensemble holds.
#[serde(rename = "trees", skip_serializing_if = "Option::is_none")]
pub trees: Option<i32>,
/// Window is how many events make one reference window.
#[serde(rename = "window", skip_serializing_if = "Option::is_none")]
pub window: Option<i32>,
}
impl RiskTopology {
pub fn new() -> RiskTopology {
RiskTopology {
blend: None,
depth: None,
family: None,
review: None,
trees: None,
window: None,
}
}
}