harbor_api/models/
platform.rs

1/*
2 * Harbor API
3 *
4 * These APIs provide services for manipulating Harbor project.
5 *
6 * The version of the OpenAPI document: 2.0
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 Platform {
16    /// The architecture that the artifact applys to
17    #[serde(rename = "architecture", skip_serializing_if = "Option::is_none")]
18    pub architecture: Option<String>,
19    /// The OS that the artifact applys to
20    #[serde(rename = "os", skip_serializing_if = "Option::is_none")]
21    pub os: Option<String>,
22    /// The version of the OS that the artifact applys to
23    #[serde(rename = "'os.version'", skip_serializing_if = "Option::is_none")]
24    pub quote_os_version_quote: Option<String>,
25    /// The features of the OS that the artifact applys to
26    #[serde(rename = "'os.features'", skip_serializing_if = "Option::is_none")]
27    pub quote_os_features_quote: Option<Vec<String>>,
28    /// The variant of the CPU
29    #[serde(rename = "variant", skip_serializing_if = "Option::is_none")]
30    pub variant: Option<String>,
31}
32
33impl Platform {
34    pub fn new() -> Platform {
35        Platform {
36            architecture: None,
37            os: None,
38            quote_os_version_quote: None,
39            quote_os_features_quote: None,
40            variant: None,
41        }
42    }
43}
44