summaryrefslogtreecommitdiffstats
path: root/librepology/src/v1/types/version.rs
blob: 7ae7b85a7d38250c4f30a5089c05e05c86628771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
    }
}