use std::fmt::Display;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Hash, Clone, Copy)]
#[serde(rename_all = "camelCase")]
pub enum MatchHistoryQueryArg {
StartIndex,
EndIndex,
Queue,
}
impl Display for MatchHistoryQueryArg {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::StartIndex => write!(f, "startIndex"),
Self::EndIndex => write!(f, "endIndex"),
Self::Queue => write!(f, "queue"),
}
}
}
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Hash, Clone, Copy)]
#[serde(rename_all = "camelCase")]
pub enum CompetitiveUpdateQueryArg {
StartIndex,
EndIndex,
Queue,
}
impl Display for CompetitiveUpdateQueryArg {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::StartIndex => write!(f, "startIndex"),
Self::EndIndex => write!(f, "endIndex"),
Self::Queue => write!(f, "queue"),
}
}
}
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Hash, Clone, Copy)]
#[serde(rename_all = "camelCase")]
pub enum LeaderboardQueryArg {
StartIndex,
Size,
Query,
}
impl Display for LeaderboardQueryArg {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::StartIndex => write!(f, "startIndex"),
Self::Size => write!(f, "size"),
Self::Query => write!(f, "query"),
}
}
}