space_traders/models/
get_status_200_response_leaderboards.rs1use serde::{Deserialize, Serialize};
6
7#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
9pub struct GetStatus200ResponseLeaderboards {
10 #[serde(rename = "mostCredits")]
12 pub most_credits: Vec<crate::models::GetStatus200ResponseLeaderboardsMostCreditsInner>,
13 #[serde(rename = "mostSubmittedCharts")]
15 pub most_submitted_charts:
16 Vec<crate::models::GetStatus200ResponseLeaderboardsMostSubmittedChartsInner>,
17}
18
19impl GetStatus200ResponseLeaderboards {
20 #[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}