blob: 4a79c0f6875b31587fdb7d2d278aaa383c47bd7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use std::ops::Deref;
// package name as in repository (if different from version)
#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Debug, serde::Deserialize)]
pub struct Name(String);
impl Deref for Name {
type Target = String;
fn deref(&self) -> &Self::Target {
&self.0
}
}
|