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 RiskHoldOut {
    /// Changed is how many records moved into that state. A record already in it is not counted and is not an error: the op is idempotent, so a retry after a network failure is safe.
    #[serde(rename = "changed", skip_serializing_if = "Option::is_none")]
    pub changed: Option<i32>,
    /// Held is how many records this tenant is now holding, at any age. Retention never disposes of one.
    #[serde(rename = "held", skip_serializing_if = "Option::is_none")]
    pub held: Option<i32>,
    /// Hold echoes the state asked for.
    #[serde(rename = "hold", skip_serializing_if = "Option::is_none")]
    pub hold: Option<bool>,
    /// Missing is how many of the named ids this tenant does not hold. It is reported rather than refused, so a sweep over a list that includes disposed records still places every hold it can — but it is REPORTED, because a hold that silently did nothing is a compliance control that lies.
    #[serde(rename = "missing", skip_serializing_if = "Option::is_none")]
    pub missing: Option<i32>,
}

impl RiskHoldOut {
    pub fn new() -> RiskHoldOut {
        RiskHoldOut {
            changed: None,
            held: None,
            hold: None,
            missing: None,
        }
    }
}