blob: e5ddc876db64aa74afd0d486d5c967773baff131 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use std::ops::Deref;
// name of repository for this package
#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Debug, Serialize, Deserialize, new)]
pub struct Repo(String);
impl Deref for Repo {
type Target = String;
fn deref(&self) -> &Self::Target {
&self.0
}
}
|