hanzo_client/models/graph_assert_out.rs
1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GraphAssertOut {
16 /// 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.
17 #[serde(rename = "duplicate", skip_serializing_if = "Option::is_none")]
18 pub duplicate: Option<i32>,
19 /// Reasons names why each refused member was refused, in the order sent.
20 #[serde(rename = "reasons", skip_serializing_if = "Option::is_none")]
21 pub reasons: Option<Vec<String>>,
22 /// Recorded is how many members became new rows.
23 #[serde(rename = "recorded", skip_serializing_if = "Option::is_none")]
24 pub recorded: Option<i32>,
25 /// 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.
26 #[serde(rename = "refused", skip_serializing_if = "Option::is_none")]
27 pub refused: Option<i32>,
28}
29
30impl GraphAssertOut {
31 pub fn new() -> GraphAssertOut {
32 GraphAssertOut {
33 duplicate: None,
34 reasons: None,
35 recorded: None,
36 refused: None,
37 }
38 }
39}
40