blob: d52a2db3733c02d2b83a30ec236d0deaa4aaa6d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use std::ops::Deref;
use url::Url;
// list of package downloads
#[derive(Eq, PartialEq, Clone, Debug, Serialize, Deserialize, new)]
pub struct Download(#[serde(with = "url_serde")] Url);
impl Deref for Download {
type Target = Url;
fn deref(&self) -> &Self::Target {
&self.0
}
}
|