1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use crate::date::Date; #[derive(Copy, Clone, Debug, PartialEq)] pub struct Version { pub minor: u16, pub patch: u16, pub channel: Channel, } #[derive(Copy, Clone, Debug, PartialEq)] pub enum Channel { Stable, Beta, Nightly(Date), Dev, }