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

// package name as in repository (if different from version)
#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Debug, Serialize, Deserialize)]
pub struct Name(String);

impl Deref for Name {
    type Target = String;

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