hanzo_client/models/graph_resolve_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 GraphResolveOut {
16 /// AsOf is the instant this answer was taken at, RFC 3339: the one asked for, or the server's clock when none was.
17 #[serde(rename = "as_of", skip_serializing_if = "Option::is_none")]
18 pub as_of: Option<String>,
19 /// Conflicts is every OTHER assertion knowable at AsOf, strongest first. They are not all disagreements: one that repeats the winner's value ranks below it and is listed here too.
20 #[serde(rename = "conflicts", skip_serializing_if = "Option::is_none")]
21 pub conflicts: Option<Vec<models::WireFact>>,
22 /// Contested is true when at least one conflict claims a value different from the winner's. Any number of conflicts that all agree leaves it false.
23 #[serde(rename = "contested", skip_serializing_if = "Option::is_none")]
24 pub contested: Option<bool>,
25 /// Entity is the entity the question named, echoed so a stored answer still says what it is about.
26 #[serde(rename = "entity", skip_serializing_if = "Option::is_none")]
27 pub entity: Option<String>,
28 /// Known is false when this plane held nothing knowable at AsOf. That is an answer, not an error.
29 #[serde(rename = "known", skip_serializing_if = "Option::is_none")]
30 pub known: Option<bool>,
31 /// Relation is the relation the question named, echoed for the same reason.
32 #[serde(rename = "relation", skip_serializing_if = "Option::is_none")]
33 pub relation: Option<String>,
34 /// Truncated says this pair holds more assertions than one read returns, so the winner was decided from the most recent ceiling-full of them. It is reported because a provenance plane that trims silently is a plane that answers confidently and wrongly; narrow the question with as_of to see what it dropped.
35 #[serde(rename = "truncated", skip_serializing_if = "Option::is_none")]
36 pub truncated: Option<bool>,
37 /// Winner is the assertion in force — the strongest of those knowable at AsOf under the order `rule` names. Absent exactly when Known is false.
38 #[serde(rename = "winner", skip_serializing_if = "Option::is_none")]
39 pub winner: Option<Box<models::WireFact>>,
40}
41
42impl GraphResolveOut {
43 pub fn new() -> GraphResolveOut {
44 GraphResolveOut {
45 as_of: None,
46 conflicts: None,
47 contested: None,
48 entity: None,
49 known: None,
50 relation: None,
51 truncated: None,
52 winner: None,
53 }
54 }
55}
56