diff options
author | Andy Wortman <ixineeringeverywhere@gmail.com> | 2017-10-24 23:27:32 -0700 |
---|---|---|
committer | Andy Wortman <ixineeringeverywhere@gmail.com> | 2017-10-24 23:27:32 -0700 |
commit | 580f44092358cc260db00ec9871caecac62de361 (patch) | |
tree | 71d1c589254fad0ce578262532118da11a6296e6 /src/tw | |
parent | aaed866268616b145026dea6e40b5ab5d57c79c0 (diff) |
add display
Diffstat (limited to 'src/tw')
-rw-r--r-- | src/tw/events.rs | 1 | ||||
-rw-r--r-- | src/tw/mod.rs | 2 |
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 |