Skip to main content

hanzo_client/models/
refresh_reference_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 RefreshReferenceOut {
16    /// Set is the set refreshed.
17    #[serde(rename = "set", skip_serializing_if = "Option::is_none")]
18    pub set: Option<String>,
19    /// Stale is whether it is STILL past its freshness bound after the refresh, which is what a publisher that has stopped answering looks like.
20    #[serde(rename = "stale", skip_serializing_if = "Option::is_none")]
21    pub stale: Option<bool>,
22    /// Took is what each publisher contributed.
23    #[serde(rename = "took", skip_serializing_if = "Option::is_none")]
24    pub took: Option<Vec<models::ReferenceTaken>>,
25    /// Version is the set's new composed version.
26    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
27    pub version: Option<String>,
28}
29
30impl RefreshReferenceOut {
31    pub fn new() -> RefreshReferenceOut {
32        RefreshReferenceOut {
33            set: None,
34            stale: None,
35            took: None,
36            version: None,
37        }
38    }
39}
40