summaryrefslogtreecommitdiffstats
path: root/librepology/src/v1/types/effname.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-04-24 09:57:24 +0200
committerGitHub <noreply@github.com>2019-04-24 09:57:24 +0200
commit4f3aebf1d71e98a8c78495838e229ea3999a8db1 (patch)
treeeab80d9db64cc63137d49198cabb33399cf98520 /librepology/src/v1/types/effname.rs
parentcf4edeadab3f54b328cbdd17e6d2ca8ac92e4a85 (diff)
parent35e92e4055b8a6c6294602627896cc22d234c0bd (diff)
Merge pull request #5 from matthiasbeyer/lib-v1-types-in-mod
Split types into module and submodules
Diffstat (limited to 'librepology/src/v1/types/effname.rs')
-rw-r--r--librepology/src/v1/types/effname.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/librepology/src/v1/types/effname.rs b/librepology/src/v1/types/effname.rs
new file mode 100644
index 0000000..ae38fd7
--- /dev/null
+++ b/librepology/src/v1/types/effname.rs
@@ -0,0 +1,14 @@
+use std::ops::Deref;
+
+// list of package downloads
+#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Debug, Serialize, Deserialize)]
+pub struct EffName(String);
+
+impl Deref for EffName {
+ type Target = String;
+
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+