hanzo_client/models/resolve_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 ResolveReferenceOut {
16 /// Answers is one entry per (set, key) consulted.
17 #[serde(rename = "answers", skip_serializing_if = "Option::is_none")]
18 pub answers: Option<Vec<models::ReferenceAnswer>>,
19 /// Consulted names the version of every set that took part, so a decision can record precisely what it leaned on. Record this with the decision: it is what makes the decision reproducible a year later.
20 #[serde(rename = "consulted", skip_serializing_if = "Option::is_none")]
21 pub consulted: Option<Vec<models::ReferenceVersion>>,
22 /// Refused names the consulted sets that could not answer at all. A key that missed in one of these is UNKNOWN, not clean.
23 #[serde(rename = "refused", skip_serializing_if = "Option::is_none")]
24 pub refused: Option<Vec<String>>,
25 /// Stale names the consulted sets past their freshness bound. Staleness is itself a risk signal — a decision taken against a three-week-old list is a weaker decision, and this is how it knows.
26 #[serde(rename = "stale", skip_serializing_if = "Option::is_none")]
27 pub stale: Option<Vec<String>>,
28}
29
30impl ResolveReferenceOut {
31 pub fn new() -> ResolveReferenceOut {
32 ResolveReferenceOut {
33 answers: None,
34 consulted: None,
35 refused: None,
36 stale: None,
37 }
38 }
39}
40