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

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

impl Deref for License {
    type Target = String;

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