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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
* 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 WireFact {
/// At is when the thing was so, RFC 3339, as the asserter gave it.
#[serde(rename = "at", skip_serializing_if = "Option::is_none")]
pub at: Option<String>,
/// By is the identity that filed it — `owner` or `owner/user` — stamped from the validated principal at the write, never from the body.
#[serde(rename = "by", skip_serializing_if = "Option::is_none")]
pub by: Option<String>,
/// Confidence in [0,1] as the asserter gave it; absent is 0. It breaks a tie between two assertions equally knowable and decides nothing else.
#[serde(rename = "confidence", skip_serializing_if = "Option::is_none")]
pub confidence: Option<f64>,
/// Entity is the thing described, in the organization's own namespace.
#[serde(rename = "entity", skip_serializing_if = "Option::is_none")]
pub entity: Option<String>,
/// Evidence points at the record the claim came from. Absent when the asserter gave none.
#[serde(rename = "evidence", skip_serializing_if = "Option::is_none")]
pub evidence: Option<String>,
/// ID is the assertion's content address, minted by the server from what was asserted. Two callers who assert the identical thing land on one ID and one row; changing any asserted field makes a different ID and a second row.
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Knowable is the first instant this plane could have answered with the assertion, RFC 3339: the later of Seen and the server's clock at the write. Derived and never supplied, which is what stops history filed today from being backdated into a past read.
#[serde(rename = "knowable", skip_serializing_if = "Option::is_none")]
pub knowable: Option<String>,
/// Names true means the assertion is an edge and Value is an entity. A walk reads only these.
#[serde(rename = "names", skip_serializing_if = "Option::is_none")]
pub names: Option<bool>,
/// Relation is what was asserted of it.
#[serde(rename = "relation", skip_serializing_if = "Option::is_none")]
pub relation: Option<String>,
/// Seen is when the asserter says it became knowable, RFC 3339. Provenance only — Knowable is what an as-of read is bounded by.
#[serde(rename = "seen", skip_serializing_if = "Option::is_none")]
pub seen: Option<String>,
/// Source names who asserted, as the caller gave it. This plane ranks no source above another, so it never outweighs a later Knowable.
#[serde(rename = "source", skip_serializing_if = "Option::is_none")]
pub source: Option<String>,
/// Value is what the relation points at: another entity's key when Names is true, otherwise a scalar.
#[serde(rename = "value", skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
impl WireFact {
pub fn new() -> WireFact {
WireFact {
at: None,
by: None,
confidence: None,
entity: None,
evidence: None,
id: None,
knowable: None,
names: None,
relation: None,
seen: None,
source: None,
value: None,
}
}
}