hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * 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,
        }
    }
}