Skip to main content

hanzo_client/models/
reference_version.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 ReferenceVersion {
16    /// AsOf is when the oldest of them was current, RFC 3339.
17    #[serde(rename = "asOf", skip_serializing_if = "Option::is_none")]
18    pub as_of: Option<String>,
19    /// Refusal is why it could not be consulted, when it could not.
20    #[serde(rename = "refusal", skip_serializing_if = "Option::is_none")]
21    pub refusal: Option<String>,
22    /// Set is the name the consulted set is addressed by.
23    #[serde(rename = "set", skip_serializing_if = "Option::is_none")]
24    pub set: Option<String>,
25    /// Stale is whether it is past its freshness bound.
26    #[serde(rename = "stale", skip_serializing_if = "Option::is_none")]
27    pub stale: Option<bool>,
28    /// Version is every contributing publisher and its content digest.
29    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
30    pub version: Option<String>,
31}
32
33impl ReferenceVersion {
34    pub fn new() -> ReferenceVersion {
35        ReferenceVersion {
36            as_of: None,
37            refusal: None,
38            set: None,
39            stale: None,
40            version: None,
41        }
42    }
43}
44