summaryrefslogtreecommitdiffstats
path: root/librepology/src/v1/types/www.rs
blob: a59ef02a0009c8599e15a41d665cea9707f6b83c (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 webpages
#[derive(Eq, PartialEq, Clone, Debug, Serialize, Deserialize)]
pub struct Www(#[serde(with = "url_serde")] Url);

impl Deref for Www {
    type Target = Url;

    fn deref(&self) -> &Self::Target {
        &self.0
    }
}