summaryrefslogtreecommitdiffstats
path: root/librepology/src/v1/types/response/category.rs
blob: 12e837a9b5c0523258d7efab52976ded53fb0e5d (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, serde::Deserialize)]
pub struct Category(String);

impl Deref for Category {
    type Target = String;

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