Skip to main content

hanzo_client/models/
framework_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 FrameworkRow {
16    /// Edition is which edition this clause list is taken from.
17    #[serde(rename = "edition", skip_serializing_if = "Option::is_none")]
18    pub edition: Option<String>,
19    /// Framework is the framework id.
20    #[serde(rename = "framework", skip_serializing_if = "Option::is_none")]
21    pub framework: Option<String>,
22    /// Name is the published standard's name.
23    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
24    pub name: Option<String>,
25    /// Publisher is who publishes it.
26    #[serde(rename = "publisher", skip_serializing_if = "Option::is_none")]
27    pub publisher: Option<String>,
28    /// Total is how many clauses the standard publishes.
29    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
30    pub total: Option<i32>,
31    /// Unit is what one clause is; Units is its plural.
32    #[serde(rename = "unit", skip_serializing_if = "Option::is_none")]
33    pub unit: Option<String>,
34    /// Units is Unit's plural, carried so a caller renders \"12 controls\" without having to pluralise a word it does not know.
35    #[serde(rename = "units", skip_serializing_if = "Option::is_none")]
36    pub units: Option<String>,
37}
38
39impl FrameworkRow {
40    pub fn new() -> FrameworkRow {
41        FrameworkRow {
42            edition: None,
43            framework: None,
44            name: None,
45            publisher: None,
46            total: None,
47            unit: None,
48            units: None,
49        }
50    }
51}
52