aboutsummaryrefslogtreecommitdiff
path: root/src/tw
diff options
context:
space:
mode:
authorAndy Wortman <ixineeringeverywhere@gmail.com>2017-10-24 23:27:32 -0700
committerAndy Wortman <ixineeringeverywhere@gmail.com>2017-10-24 23:27:32 -0700
commit580f44092358cc260db00ec9871caecac62de361 (patch)
tree71d1c589254fad0ce578262532118da11a6296e6 /src/tw
parentaaed866268616b145026dea6e40b5ab5d57c79c0 (diff)
add display
Diffstat (limited to 'src/tw')
-rw-r--r--src/tw/events.rs1
-rw-r--r--src/tw/mod.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/tw/events.rs b/src/tw/events.rs
index c26a840..afc7fbb 100644
--- a/src/tw/events.rs
+++ b/src/tw/events.rs
@@ -1,5 +1,6 @@
extern crate serde_json;
+#[derive(Clone)]
pub enum Event {
Deleted { user_id: String, twete_id: String },
RT_RT { user_id: String, twete_id: String },
diff --git a/src/tw/mod.rs b/src/tw/mod.rs
index f2582cf..0341ec9 100644
--- a/src/tw/mod.rs
+++ b/src/tw/mod.rs
@@ -135,7 +135,7 @@ impl Default for IdConversions {
}
}
-#[derive(Debug, PartialEq)]
+#[derive(Debug, PartialEq, Clone)]
pub enum TweetId {
Today(u64), // just a number
Dated(String, u64), // 20171002:number