summaryrefslogtreecommitdiffstats
path: root/librepology/src/v1/types/version.rs
blob: 2350316de80f79e1822914da4c663c121313c67b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::ops::Deref;

// package version (sanitized)
#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Debug, Serialize, Deserialize, new)]
pub struct Version(String);

impl Deref for Version {
    type Target = String;

    fn deref(&self) -> &Self::Target {
        &self.0
    }
}