harbor_api/models/
statistic.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 Statistic {
16    /// The count of the private projects
17    #[serde(rename = "private_project_count", skip_serializing_if = "Option::is_none")]
18    pub private_project_count: Option<i64>,
19    /// The count of the private repositories
20    #[serde(rename = "private_repo_count", skip_serializing_if = "Option::is_none")]
21    pub private_repo_count: Option<i64>,
22    /// The count of the public projects
23    #[serde(rename = "public_project_count", skip_serializing_if = "Option::is_none")]
24    pub public_project_count: Option<i64>,
25    /// The count of the public repositories
26    #[serde(rename = "public_repo_count", skip_serializing_if = "Option::is_none")]
27    pub public_repo_count: Option<i64>,
28    /// The count of the total projects, only be seen by the system admin
29    #[serde(rename = "total_project_count", skip_serializing_if = "Option::is_none")]
30    pub total_project_count: Option<i64>,
31    /// The count of the total repositories, only be seen by the system admin
32    #[serde(rename = "total_repo_count", skip_serializing_if = "Option::is_none")]
33    pub total_repo_count: Option<i64>,
34    /// The total storage consumption of blobs, only be seen by the system admin
35    #[serde(rename = "total_storage_consumption", skip_serializing_if = "Option::is_none")]
36    pub total_storage_consumption: Option<i64>,
37}
38
39impl Statistic {
40    pub fn new() -> Statistic {
41        Statistic {
42            private_project_count: None,
43            private_repo_count: None,
44            public_project_count: None,
45            public_repo_count: None,
46            total_project_count: None,
47            total_repo_count: None,
48            total_storage_consumption: None,
49        }
50    }
51}
52