summaryrefslogtreecommitdiffstats
path: root/librepology/src/v1/types/category.rs
blob: ad118d019a49249c434447efd8f342374d44d828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
    }
}