Skip to main content

hanzo_client/models/
doc_row.rs

1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct DocRow {
16    /// 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.
17    #[serde(rename = "attested", skip_serializing_if = "Option::is_none")]
18    pub attested: Option<bool>,
19    /// Href is where to read it, present only when this reader may.
20    #[serde(rename = "href", skip_serializing_if = "Option::is_none")]
21    pub href: Option<String>,
22    /// ID is the document's id within this organization's centre.
23    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
24    pub id: Option<String>,
25    /// Kind is the artifact type — soc2, iso, pentest, letter, caiq, sig, vsa, questionnaire, policy or other.
26    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
27    pub kind: Option<String>,
28    /// Label is the artifact type in words, for rendering.
29    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
30    pub label: Option<String>,
31    /// Note is anything the organization says about this artifact.
32    #[serde(rename = "note", skip_serializing_if = "Option::is_none")]
33    pub note: Option<String>,
34    /// Released reports whether THIS reader may read it. False means the artifact exists and is available on request.
35    #[serde(rename = "released", skip_serializing_if = "Option::is_none")]
36    pub released: Option<bool>,
37    /// Tier is \"public\" or \"gated\". It defaults to gated, so a new artifact is closed until somebody opens it deliberately.
38    #[serde(rename = "tier", skip_serializing_if = "Option::is_none")]
39    pub tier: Option<String>,
40    /// Title is what the document is called.
41    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
42    pub title: Option<String>,
43    /// Updated is when the record last changed, unix milliseconds.
44    #[serde(rename = "updated", skip_serializing_if = "Option::is_none")]
45    pub updated: Option<i32>,
46}
47
48impl DocRow {
49    pub fn new() -> DocRow {
50        DocRow {
51            attested: None,
52            href: None,
53            id: None,
54            kind: None,
55            label: None,
56            note: None,
57            released: None,
58            tier: None,
59            title: None,
60            updated: None,
61        }
62    }
63}
64