harbor_api/models/
project_summary.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 ProjectSummary {
16    /// The number of the repositories under this project.
17    #[serde(rename = "repo_count", skip_serializing_if = "Option::is_none")]
18    pub repo_count: Option<i32>,
19    /// The total number of project admin members.
20    #[serde(rename = "project_admin_count", skip_serializing_if = "Option::is_none")]
21    pub project_admin_count: Option<i32>,
22    /// The total number of maintainer members.
23    #[serde(rename = "maintainer_count", skip_serializing_if = "Option::is_none")]
24    pub maintainer_count: Option<i32>,
25    /// The total number of developer members.
26    #[serde(rename = "developer_count", skip_serializing_if = "Option::is_none")]
27    pub developer_count: Option<i32>,
28    /// The total number of guest members.
29    #[serde(rename = "guest_count", skip_serializing_if = "Option::is_none")]
30    pub guest_count: Option<i32>,
31    /// The total number of limited guest members.
32    #[serde(rename = "limited_guest_count", skip_serializing_if = "Option::is_none")]
33    pub limited_guest_count: Option<i32>,
34    #[serde(rename = "quota", skip_serializing_if = "Option::is_none")]
35    pub quota: Option<Box<models::ProjectSummaryQuota>>,
36    #[serde(rename = "registry", skip_serializing_if = "Option::is_none")]
37    pub registry: Option<Box<models::Registry>>,
38}
39
40impl ProjectSummary {
41    pub fn new() -> ProjectSummary {
42        ProjectSummary {
43            repo_count: None,
44            project_admin_count: None,
45            maintainer_count: None,
46            developer_count: None,
47            guest_count: None,
48            limited_guest_count: None,
49            quota: None,
50            registry: None,
51        }
52    }
53}
54