summaryrefslogtreecommitdiffstats
path: root/librepology/src/v1/types/response/www.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-04-06 12:37:14 +0200
committerMatthias Beyer <mail@beyermatthias.de>2021-04-06 12:37:14 +0200
commit7d1806f7b09a8b610cfe2cce12795c444fbef8cb (patch)
tree80473f1aa20e8244abe07367da13dbb68fbb6556 /librepology/src/v1/types/response/www.rs
parentc8580bc601330d3d00bfe492a00464f5c403ccb5 (diff)
Restructure for use with reqwest
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'librepology/src/v1/types/response/www.rs')
-rw-r--r--librepology/src/v1/types/response/www.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/librepology/src/v1/types/response/www.rs b/librepology/src/v1/types/response/www.rs
new file mode 100644
index 0000000..bf7fbe8
--- /dev/null
+++ b/librepology/src/v1/types/response/www.rs
@@ -0,0 +1,15 @@
+use std::ops::Deref;
+
+use url::Url;
+
+// list of package webpages
+#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize)]
+pub struct Www(#[serde(with = "url_serde")] Url);
+
+impl Deref for Www {
+ type Target = Url;
+
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}