mcsr-ranked-api 0.6.1

MCSR Ranked API wrapper in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::Serialize;

use crate::types::Season;

/// Parameters for [`super::elo::EloLeaderboardInfo::get`] and [`super::phase::PhaseLeaderboardInfo::get`]
#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct GetLeaderboardInfoParams {
	pub season: Option<Season>,
}
impl GetLeaderboardInfoParams {
	pub fn season(season: Season) -> Self {
		Self {
			season: Some(season),
		}
	}
}