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

// name of repository for this package
#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Debug, Serialize, Deserialize, new)]
pub struct Repo(String);

impl Deref for Repo {
    type Target = String;

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