harbor_api/models/
label.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 Label {
16    /// The ID of the label
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<i64>,
19    /// The name the label
20    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21    pub name: Option<String>,
22    /// The description the label
23    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
24    pub description: Option<String>,
25    /// The color the label
26    #[serde(rename = "color", skip_serializing_if = "Option::is_none")]
27    pub color: Option<String>,
28    /// The scope the label
29    #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
30    pub scope: Option<String>,
31    /// The ID of project that the label belongs to
32    #[serde(rename = "project_id", skip_serializing_if = "Option::is_none")]
33    pub project_id: Option<i64>,
34    /// The creation time the label
35    #[serde(rename = "creation_time", skip_serializing_if = "Option::is_none")]
36    pub creation_time: Option<String>,
37    /// The update time of the label
38    #[serde(rename = "update_time", skip_serializing_if = "Option::is_none")]
39    pub update_time: Option<String>,
40}
41
42impl Label {
43    pub fn new() -> Label {
44        Label {
45            id: None,
46            name: None,
47            description: None,
48            color: None,
49            scope: None,
50            project_id: None,
51            creation_time: None,
52            update_time: None,
53        }
54    }
55}
56