1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* 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 ReferenceTaken {
/// Keys is how many members it carries.
#[serde(rename = "keys", skip_serializing_if = "Option::is_none")]
pub keys: Option<i32>,
/// Refusal is why this publisher contributed nothing, if it did not. The set keeps its previous version of this source rather than shrinking.
#[serde(rename = "refusal", skip_serializing_if = "Option::is_none")]
pub refusal: Option<String>,
/// Resumed is true when this run continued a version a previous run left half-landed.
#[serde(rename = "resumed", skip_serializing_if = "Option::is_none")]
pub resumed: Option<bool>,
/// Source is the publisher.
#[serde(rename = "source", skip_serializing_if = "Option::is_none")]
pub source: Option<String>,
/// Unchanged is true when the publisher's data was byte-for-byte the set we already held.
#[serde(rename = "unchanged", skip_serializing_if = "Option::is_none")]
pub unchanged: Option<bool>,
/// Version is the content digest that landed.
#[serde(rename = "version", skip_serializing_if = "Option::is_none")]
pub version: Option<String>,
/// Wrote is how many rows this run actually wrote. Zero with Unchanged means the publisher served the same set again.
#[serde(rename = "wrote", skip_serializing_if = "Option::is_none")]
pub wrote: Option<i32>,
}
impl ReferenceTaken {
pub fn new() -> ReferenceTaken {
ReferenceTaken {
keys: None,
refusal: None,
resumed: None,
source: None,
unchanged: None,
version: None,
wrote: None,
}
}
}