summaryrefslogtreecommitdiffstats
path: root/librepology/src/v1/types/download.rs
blob: e4d64d1c9ca96260f72bb184c7873cd92ced1394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
    }
}