1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
use serde::{Deserialize, Serialize}; pub enum TrackEvent { Increment, Decrement, } #[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)] pub enum ViewMode { Day, Week, Month, Year, } impl std::default::Default for ViewMode { fn default() -> Self { ViewMode::Day } }