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 ReferenceReceipt {
    /// AsOf is when the load happened, RFC 3339. Absent is dated on arrival, which can only make the list look older than it is.
    #[serde(rename = "asOf", skip_serializing_if = "Option::is_none")]
    pub as_of: Option<String>,
    /// Keys is how many designations that load carried. Zero from a publisher who designates somebody is a failed load wearing a successful one's clothes, and belongs in Refusal instead.
    #[serde(rename = "keys", skip_serializing_if = "Option::is_none")]
    pub keys: Option<i32>,
    /// Refusal is why the load failed, when it did.
    #[serde(rename = "refusal", skip_serializing_if = "Option::is_none")]
    pub refusal: Option<String>,
    /// Source is the publisher this receipt is for.
    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
    pub source: Option<String>,
    /// Version is the digest of what that publisher supplied, so a refresh that changed nothing can be told from a refresh that did not run.
    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
}

impl ReferenceReceipt {
    pub fn new() -> ReferenceReceipt {
        ReferenceReceipt {
            as_of: None,
            keys: None,
            refusal: None,
            source: None,
            version: None,
        }
    }
}