gitbundle_sdk/models/
admin_stats.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.0.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AdminStats {
17    #[serde(rename = "total_groups")]
18    pub total_groups: i64,
19    #[serde(rename = "total_users")]
20    pub total_users: i64,
21}
22
23impl AdminStats {
24    pub fn new(total_groups: i64, total_users: i64) -> AdminStats {
25        AdminStats {
26            total_groups,
27            total_users,
28        }
29    }
30}