gitea_client/models/
node_info_usage_users.rs

1/*
2 * Gitea API
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.22.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// NodeInfoUsageUsers : NodeInfoUsageUsers contains statistics about the users of this server
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NodeInfoUsageUsers {
17    #[serde(rename = "activeHalfyear", skip_serializing_if = "Option::is_none")]
18    pub active_halfyear: Option<i64>,
19    #[serde(rename = "activeMonth", skip_serializing_if = "Option::is_none")]
20    pub active_month: Option<i64>,
21    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
22    pub total: Option<i64>,
23}
24
25impl NodeInfoUsageUsers {
26    /// NodeInfoUsageUsers contains statistics about the users of this server
27    pub fn new() -> NodeInfoUsageUsers {
28        NodeInfoUsageUsers {
29            active_halfyear: None,
30            active_month: None,
31            total: None,
32        }
33    }
34}
35