summaryrefslogtreecommitdiffstats
path: root/src/compare.rs
blob: c13d01ebe1dc6d733702e3c3e26232512f808963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(Serialize, Deserialize, Debug, Eq, PartialEq)]
pub struct ComparePackage {
    name: String,
    version: String,
}

impl ComparePackage {
    pub fn name(&self) -> &String {
        &self.name
    }

    pub fn version(&self) -> &String {
        &self.version
    }
}