summaryrefslogtreecommitdiffstats
path: root/librepology/src/v1/types/version.rs
blob: cad703a3decd94d7540fb35df8fce46549f4f9e4 (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)]
pub struct Version(String);

impl Deref for Version {
    type Target = String;

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