blob: e337baa77eccf9ca405548b65c3f6d1e6448baa4 (
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)]
pub struct Download(#[serde(with = "url_serde")] Url);
impl Deref for Download {
type Target = Url;
fn deref(&self) -> &Self::Target {
&self.0
}
}
|