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

// list of package categories
#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Debug, Serialize, Deserialize, new)]
pub struct Category(String);

impl Deref for Category {
    type Target = String;

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