summaryrefslogtreecommitdiffstats
path: root/src/compare.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/compare.rs')
-rw-r--r--src/compare.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/compare.rs b/src/compare.rs
new file mode 100644
index 0000000..c13d01e
--- /dev/null
+++ b/src/compare.rs
@@ -0,0 +1,15 @@
+#[derive(Serialize, Deserialize, Debug, Eq, PartialEq)]
+pub struct ComparePackage {
+ name: String,
+ version: String,
+}
+
+impl ComparePackage {
+ pub fn name(&self) -> &String {
+ &self.name
+ }
+
+ pub fn version(&self) -> &String {
+ &self.version
+ }
+} \ No newline at end of file