space_traders/models/
get_status_200_response_leaderboards.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 GetStatus200ResponseLeaderboards {
10    /// Top agents with the most credits.
11    #[serde(rename = "mostCredits")]
12    pub most_credits: Vec<crate::models::GetStatus200ResponseLeaderboardsMostCreditsInner>,
13    /// Top agents with the most charted submitted.
14    #[serde(rename = "mostSubmittedCharts")]
15    pub most_submitted_charts:
16        Vec<crate::models::GetStatus200ResponseLeaderboardsMostSubmittedChartsInner>,
17}
18
19impl GetStatus200ResponseLeaderboards {
20    /// Create value with optional fields set to `None`.
21    #[allow(clippy::too_many_arguments)]
22    pub fn new(
23        most_credits: Vec<crate::models::GetStatus200ResponseLeaderboardsMostCreditsInner>,
24        most_submitted_charts: Vec<
25            crate::models::GetStatus200ResponseLeaderboardsMostSubmittedChartsInner,
26        >,
27    ) -> GetStatus200ResponseLeaderboards {
28        GetStatus200ResponseLeaderboards {
29            most_credits,
30            most_submitted_charts,
31        }
32    }
33}