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 TrustItemView {
/// Attester is who vouched for it: self or auditor.
#[serde(rename = "attester", skip_serializing_if = "Option::is_none")]
pub attester: Option<String>,
/// Body is the item's content for the kinds that are text rather than a file.
#[serde(rename = "body", skip_serializing_if = "Option::is_none")]
pub body: Option<String>,
/// CreatedAt is when it was published, in unix milliseconds.
#[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
pub created_at: Option<i32>,
/// Document is the data-room document holding its bytes, empty when it has none.
#[serde(rename = "document", skip_serializing_if = "Option::is_none")]
pub document: Option<String>,
/// Framework is the standard it speaks to, when it speaks to one.
#[serde(rename = "framework", skip_serializing_if = "Option::is_none")]
pub framework: Option<String>,
/// ID addresses the item.
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Kind is one of report, letter, policy, questionnaire, subprocessor, article or update — the closed set the public centre knows how to draw.
#[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
pub kind: Option<String>,
/// Name is the label the centre lists it under.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// Retired is whether it has been withdrawn. A retired item is absent from the public centre and cannot be granted; it is kept because a grant already made over it is part of the record.
#[serde(rename = "retired", skip_serializing_if = "Option::is_none")]
pub retired: Option<bool>,
/// Summary is a line about it.
#[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
pub summary: Option<String>,
/// Tier is public or gated. Gated is the default and an auditor-signed item can only ever be gated.
#[serde(rename = "tier", skip_serializing_if = "Option::is_none")]
pub tier: Option<String>,
/// UpdatedAt is when it last changed, in unix milliseconds.
#[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
pub updated_at: Option<i32>,
}
impl TrustItemView {
pub fn new() -> TrustItemView {
TrustItemView {
attester: None,
body: None,
created_at: None,
document: None,
framework: None,
id: None,
kind: None,
name: None,
retired: None,
summary: None,
tier: None,
updated_at: None,
}
}
}