use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum CalendarEventCategory {
#[serde(rename = "arts")]
Arts,
#[serde(rename = "avatars")]
Avatars,
#[serde(rename = "dance")]
Dance,
#[serde(rename = "education")]
Education,
#[serde(rename = "exploration")]
Exploration,
#[serde(rename = "film_media")]
FilmMedia,
#[serde(rename = "gaming")]
Gaming,
#[serde(rename = "hangout")]
Hangout,
#[serde(rename = "music")]
Music,
#[serde(rename = "other")]
Other,
#[serde(rename = "performance")]
Performance,
#[serde(rename = "roleplaying")]
Roleplaying,
#[serde(rename = "wellness")]
Wellness,
}
impl std::fmt::Display for CalendarEventCategory {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Arts => write!(f, "arts"),
Self::Avatars => write!(f, "avatars"),
Self::Dance => write!(f, "dance"),
Self::Education => write!(f, "education"),
Self::Exploration => write!(f, "exploration"),
Self::FilmMedia => write!(f, "film_media"),
Self::Gaming => write!(f, "gaming"),
Self::Hangout => write!(f, "hangout"),
Self::Music => write!(f, "music"),
Self::Other => write!(f, "other"),
Self::Performance => write!(f, "performance"),
Self::Roleplaying => write!(f, "roleplaying"),
Self::Wellness => write!(f, "wellness"),
}
}
}
impl Default for CalendarEventCategory {
fn default() -> CalendarEventCategory {
Self::Arts
}
}