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
/*
* 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 TrustItem {
/// Available is \"now\" when the item can be read immediately, or \"on request\" when it is released only to a party who asks and is answered. It is the one field a page renders the difference from.
#[serde(rename = "available", skip_serializing_if = "Option::is_none")]
pub available: Option<String>,
/// Body is the item's content, for the kinds that are text rather than a file — an article, a subprocessor entry, a note. Empty for anything released on request: a summary of a document is still the document.
#[serde(rename = "body", skip_serializing_if = "Option::is_none")]
pub body: Option<String>,
/// Framework is the standard the item speaks to, when it speaks to one.
#[serde(rename = "framework", skip_serializing_if = "Option::is_none")]
pub framework: Option<String>,
/// ID addresses the item — for reading it if it is available now, or for naming it in a request if it is not.
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Kind is what the item is: report, letter, policy, questionnaire, subprocessor, article or update.
#[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
pub kind: Option<String>,
/// Name is the item's title.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// Signed is \"self\" when the org states it itself and \"auditor\" when an independent auditor put their name to it. It is the reason an item is available now or on request, so a reader can see the rule rather than infer it.
#[serde(rename = "signed", skip_serializing_if = "Option::is_none")]
pub signed: Option<String>,
/// Summary is a line about the item.
#[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
pub summary: Option<String>,
/// UpdatedAt is when the item last changed, in unix milliseconds.
#[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
pub updated_at: Option<i32>,
}
impl TrustItem {
pub fn new() -> TrustItem {
TrustItem {
available: None,
body: None,
framework: None,
id: None,
kind: None,
name: None,
signed: None,
summary: None,
updated_at: None,
}
}
}