1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* 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 GraphResolveOut {
/// AsOf is the instant this answer was taken at, RFC 3339: the one asked for, or the server's clock when none was.
#[serde(rename = "as_of", skip_serializing_if = "Option::is_none")]
pub as_of: Option<String>,
/// 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.
#[serde(rename = "conflicts", skip_serializing_if = "Option::is_none")]
pub conflicts: Option<Vec<models::WireFact>>,
/// 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.
#[serde(rename = "contested", skip_serializing_if = "Option::is_none")]
pub contested: Option<bool>,
/// Entity is the entity the question named, echoed so a stored answer still says what it is about.
#[serde(rename = "entity", skip_serializing_if = "Option::is_none")]
pub entity: Option<String>,
/// Known is false when this plane held nothing knowable at AsOf. That is an answer, not an error.
#[serde(rename = "known", skip_serializing_if = "Option::is_none")]
pub known: Option<bool>,
/// Relation is the relation the question named, echoed for the same reason.
#[serde(rename = "relation", skip_serializing_if = "Option::is_none")]
pub relation: Option<String>,
/// 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.
#[serde(rename = "truncated", skip_serializing_if = "Option::is_none")]
pub truncated: Option<bool>,
/// Winner is the assertion in force — the strongest of those knowable at AsOf under the order `rule` names. Absent exactly when Known is false.
#[serde(rename = "winner", skip_serializing_if = "Option::is_none")]
pub winner: Option<Box<models::WireFact>>,
}
impl GraphResolveOut {
pub fn new() -> GraphResolveOut {
GraphResolveOut {
as_of: None,
conflicts: None,
contested: None,
entity: None,
known: None,
relation: None,
truncated: None,
winner: None,
}
}
}