diff options
Diffstat (limited to 'librepology/src/v1/types/www.rs')
-rw-r--r-- | librepology/src/v1/types/www.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/librepology/src/v1/types/www.rs b/librepology/src/v1/types/www.rs new file mode 100644 index 0000000..a59ef02 --- /dev/null +++ b/librepology/src/v1/types/www.rs @@ -0,0 +1,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 + } +} + |