use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ApplicationType {
#[serde(rename = "application")]
Application,
#[serde(rename = "game")]
Game,
}
impl std::fmt::Display for ApplicationType {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Application => write!(f, "application"),
Self::Game => write!(f, "game"),
}
}
}
impl Default for ApplicationType {
fn default() -> ApplicationType {
Self::Application
}
}