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 RiskOrgFeature {
    /// Blind is true when the dimension is present in no bucket at all: this organisation's surface does not carry it, and saying so is the difference between no risk and no data.
    #[serde(rename = "blind", skip_serializing_if = "Option::is_none")]
    pub blind: Option<bool>,
    /// Buckets is how many five-minute buckets of this organisation's surface were measured.
    #[serde(rename = "buckets", skip_serializing_if = "Option::is_none")]
    pub buckets: Option<i32>,
    /// Max is the largest value it reached in the window.
    #[serde(rename = "max", skip_serializing_if = "Option::is_none")]
    pub max: Option<f64>,
    /// Mean is the dimension's average where it was present.
    #[serde(rename = "mean", skip_serializing_if = "Option::is_none")]
    pub mean: Option<f64>,
    /// Name is the dimension as this API publishes it.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Present is in how many of them the dimension carried a value at all.
    #[serde(rename = "present", skip_serializing_if = "Option::is_none")]
    pub present: Option<i32>,
    /// Source names the plane it is rolled up from, so a dimension that reads zero everywhere traces to a plane the organisation does not use rather than to a defect.
    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
    pub source: Option<String>,
    /// Unit is how to read the numbers below.
    #[serde(rename = "unit", skip_serializing_if = "Option::is_none")]
    pub unit: Option<String>,
}

impl RiskOrgFeature {
    pub fn new() -> RiskOrgFeature {
        RiskOrgFeature {
            blind: None,
            buckets: None,
            max: None,
            mean: None,
            name: None,
            present: None,
            source: None,
            unit: None,
        }
    }
}