blob: 1bc8c0291e876a9a4c3424965074c1c1f2cf25d8 (
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)]
pub struct Category(String);
impl Deref for Category {
type Target = String;
fn deref(&self) -> &Self::Target {
&self.0
}
}
|