1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
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 } } pub fn default_auto() -> bool { false }