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