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
/*
* 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 DocRow {
/// Attested reports whether somebody OUTSIDE this organization put their name to it. Those are the artifacts a reviewer asks for, and they are released through a grant rather than published — there is no field that can say otherwise.
#[serde(rename = "attested", skip_serializing_if = "Option::is_none")]
pub attested: Option<bool>,
/// Href is where to read it, present only when this reader may.
#[serde(rename = "href", skip_serializing_if = "Option::is_none")]
pub href: Option<String>,
/// ID is the document's id within this organization's centre.
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Kind is the artifact type — soc2, iso, pentest, letter, caiq, sig, vsa, questionnaire, policy or other.
#[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
pub kind: Option<String>,
/// Label is the artifact type in words, for rendering.
#[serde(rename = "label", skip_serializing_if = "Option::is_none")]
pub label: Option<String>,
/// Note is anything the organization says about this artifact.
#[serde(rename = "note", skip_serializing_if = "Option::is_none")]
pub note: Option<String>,
/// Released reports whether THIS reader may read it. False means the artifact exists and is available on request.
#[serde(rename = "released", skip_serializing_if = "Option::is_none")]
pub released: Option<bool>,
/// Tier is \"public\" or \"gated\". It defaults to gated, so a new artifact is closed until somebody opens it deliberately.
#[serde(rename = "tier", skip_serializing_if = "Option::is_none")]
pub tier: Option<String>,
/// Title is what the document is called.
#[serde(rename = "title", skip_serializing_if = "Option::is_none")]
pub title: Option<String>,
/// Updated is when the record last changed, unix milliseconds.
#[serde(rename = "updated", skip_serializing_if = "Option::is_none")]
pub updated: Option<i32>,
}
impl DocRow {
pub fn new() -> DocRow {
DocRow {
attested: None,
href: None,
id: None,
kind: None,
label: None,
note: None,
released: None,
tier: None,
title: None,
updated: None,
}
}
}