Generate api client with openapi-generator

This commit is contained in:
2025-06-03 19:09:41 -03:00
parent e701f20c1a
commit 0b32ab460c
68 changed files with 6774 additions and 883 deletions

View File

@ -0,0 +1,33 @@
/*
* Tribufu API
*
* REST API to access Tribufu services.
*
* The version of the OpenAPI document: 1.1.0
* Contact: contact@tribufu.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ServerMetrics {
#[serde(rename = "server_count", skip_serializing_if = "Option::is_none")]
pub server_count: Option<i32>,
#[serde(rename = "package_count", skip_serializing_if = "Option::is_none")]
pub package_count: Option<i32>,
#[serde(rename = "country_count", skip_serializing_if = "Option::is_none")]
pub country_count: Option<i32>,
}
impl ServerMetrics {
pub fn new() -> ServerMetrics {
ServerMetrics {
server_count: None,
package_count: None,
country_count: None,
}
}
}