Skip to main content

hanzo_client/models/
control_list.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 ControlList {
16    /// Absent is how many the organization does not have. Each still names the clause it would satisfy, and none of them moves a coverage number.
17    #[serde(rename = "absent", skip_serializing_if = "Option::is_none")]
18    pub absent: Option<i32>,
19    /// Automated is how many run with nobody in the loop.
20    #[serde(rename = "automated", skip_serializing_if = "Option::is_none")]
21    pub automated: Option<i32>,
22    /// Controls is every control, opaque because the organization owns its shape.
23    #[serde(rename = "controls", skip_serializing_if = "Option::is_none")]
24    pub controls: Option<Vec<serde_json::Value>>,
25    /// Partial is how many run but do not cover their whole claim.
26    #[serde(rename = "partial", skip_serializing_if = "Option::is_none")]
27    pub partial: Option<i32>,
28    /// Statement is the counts as one sentence, safe to quote.
29    #[serde(rename = "statement", skip_serializing_if = "Option::is_none")]
30    pub statement: Option<String>,
31    /// Total is how many controls this organization publishes.
32    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
33    pub total: Option<i32>,
34    /// Unverified is how many rest on somebody having read the source rather than on a test or an audit row.
35    #[serde(rename = "unverified", skip_serializing_if = "Option::is_none")]
36    pub unverified: Option<i32>,
37    /// Version is the embedded inventory's version.
38    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
39    pub version: Option<String>,
40}
41
42impl ControlList {
43    pub fn new() -> ControlList {
44        ControlList {
45            absent: None,
46            automated: None,
47            controls: None,
48            partial: None,
49            statement: None,
50            total: None,
51            unverified: None,
52            version: None,
53        }
54    }
55}
56