Skip to main content

harbor_api/models/
quota.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/// Quota : The quota object
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Quota {
17    /// ID of the quota
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<i32>,
20    #[serde(rename = "ref", skip_serializing_if = "Option::is_none")]
21    pub r#ref: Option<std::collections::HashMap<String, serde_json::Value>>,
22    #[serde(rename = "hard", skip_serializing_if = "Option::is_none")]
23    pub hard: Option<std::collections::HashMap<String, i64>>,
24    #[serde(rename = "used", skip_serializing_if = "Option::is_none")]
25    pub used: Option<std::collections::HashMap<String, i64>>,
26    /// the creation time of the quota
27    #[serde(rename = "creation_time", skip_serializing_if = "Option::is_none")]
28    pub creation_time: Option<String>,
29    /// the update time of the quota
30    #[serde(rename = "update_time", skip_serializing_if = "Option::is_none")]
31    pub update_time: Option<String>,
32}
33
34impl Quota {
35    /// The quota object
36    pub fn new() -> Quota {
37        Quota {
38            id: None,
39            r#ref: None,
40            hard: None,
41            used: None,
42            creation_time: None,
43            update_time: None,
44        }
45    }
46}
47