aboutsummaryrefslogtreecommitdiff
path: root/rustversion/src/version.rs
blob: ab3992fb81475f08b5463efd61127de849ea3437 (plain)
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,
}