blob: 04507a7ee57dc0d61c9db8aa4b3d77700577cec6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
}
}
|