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 RiskCause {
    /// Baseline is the number it was measured against — always this organisation's own history, never a fixed limit and never another organisation's.
    #[serde(rename = "baseline", skip_serializing_if = "Option::is_none")]
    pub baseline: Option<f64>,
    /// Citation is where those words come from, so the claim is checkable rather than asserted — which is what a chargeback network or a regulator asks for.
    #[serde(rename = "citation", skip_serializing_if = "Option::is_none")]
    pub citation: Option<String>,
    /// Feature is the dimension that contributed.
    #[serde(rename = "feature", skip_serializing_if = "Option::is_none")]
    pub feature: Option<String>,
    /// Indicator is the supervisor's own words for the thing being looked for.
    #[serde(rename = "indicator", skip_serializing_if = "Option::is_none")]
    pub indicator: Option<String>,
    /// Observed is the raw number the coordinate was computed from.
    #[serde(rename = "observed", skip_serializing_if = "Option::is_none")]
    pub observed: Option<f64>,
    /// Severity is how much weight this dimension carries.
    #[serde(rename = "severity", skip_serializing_if = "Option::is_none")]
    pub severity: Option<String>,
    /// Share is this feature's part of the score, in [0,1]. Zero across every cause means no single feature accounts for the alert and the combination does; the causes are then ordered by how far each sits from unremarkable.
    #[serde(rename = "share", skip_serializing_if = "Option::is_none")]
    pub share: Option<f64>,
    /// Typology is the laundering or abuse pattern this dimension detects.
    #[serde(rename = "typology", skip_serializing_if = "Option::is_none")]
    pub typology: Option<String>,
    /// Unit is how to read Observed, which is what turns a coordinate into a sentence.
    #[serde(rename = "unit", skip_serializing_if = "Option::is_none")]
    pub unit: Option<String>,
    /// Without is the score the same event would have received with this coordinate at its neutral value — the counterfactual itself.
    #[serde(rename = "without", skip_serializing_if = "Option::is_none")]
    pub without: Option<f64>,
}

impl RiskCause {
    pub fn new() -> RiskCause {
        RiskCause {
            baseline: None,
            citation: None,
            feature: None,
            indicator: None,
            observed: None,
            severity: None,
            share: None,
            typology: None,
            unit: None,
            without: None,
        }
    }
}