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 GraphAssertOut {
    /// Duplicate is how many members this plane already held. A redelivery collides on its content address and is counted here, not refused: it is the success a retrying caller depends on.
    #[serde(rename = "duplicate", skip_serializing_if = "Option::is_none")]
    pub duplicate: Option<i32>,
    /// Reasons names why each refused member was refused, in the order sent.
    #[serde(rename = "reasons", skip_serializing_if = "Option::is_none")]
    pub reasons: Option<Vec<String>>,
    /// Recorded is how many members became new rows.
    #[serde(rename = "recorded", skip_serializing_if = "Option::is_none")]
    pub recorded: Option<i32>,
    /// Refused is how many members were turned away on arrival, before the store was touched — a missing entity, a timestamp that is not RFC 3339, a confidence outside [0,1]. The rest of the batch was still recorded.
    #[serde(rename = "refused", skip_serializing_if = "Option::is_none")]
    pub refused: Option<i32>,
}

impl GraphAssertOut {
    pub fn new() -> GraphAssertOut {
        GraphAssertOut {
            duplicate: None,
            reasons: None,
            recorded: None,
            refused: None,
        }
    }
}