summaryrefslogtreecommitdiffstats
path: root/librepology/src/v1/types/www.rs
blob: 1b5b89e882a41c005ee1b9bc00a1a9087ac9fee6 (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, new)]
pub struct Www(#[serde(with = "url_serde")] Url);

impl Deref for Www {
    type Target = Url;

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