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 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,
        }
    }
}