space_traders/models/
get_status_200_response_stats.rs

1//! Generated by: <https://openapi-generator.tech>
2//!
3//! Version of specification: `2.0.0`
4
5use serde::{Deserialize, Serialize};
6
7///
8#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
9pub struct GetStatus200ResponseStats {
10    /// Number of registered agents in the game.
11    #[serde(rename = "agents")]
12    pub agents: i32,
13    /// Total number of ships in the game.
14    #[serde(rename = "ships")]
15    pub ships: i32,
16    /// Total number of systems in the game.
17    #[serde(rename = "systems")]
18    pub systems: i32,
19    /// Total number of waypoints in the game.
20    #[serde(rename = "waypoints")]
21    pub waypoints: i32,
22}
23
24impl GetStatus200ResponseStats {
25    /// Create value with optional fields set to `None`.
26    #[allow(clippy::too_many_arguments)]
27    pub fn new(agents: i32, ships: i32, systems: i32, waypoints: i32) -> GetStatus200ResponseStats {
28        GetStatus200ResponseStats {
29            agents,
30            ships,
31            systems,
32            waypoints,
33        }
34    }
35}