Browse Source

src/util/time.rs: added copy trait

aggstam 4 years ago
parent
commit
6163de04d9
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/util/time.rs

+ 9 - 1
src/util/time.rs

@@ -14,7 +14,15 @@ use crate::{
 
 
 /// Wrapper struct to represent [`chrono`] UTC timestamps.
 /// Wrapper struct to represent [`chrono`] UTC timestamps.
 #[derive(
 #[derive(
-    Clone, Debug, Serialize, Deserialize, SerialEncodable, SerialDecodable, PartialEq, PartialOrd,
+    Clone,
+    Copy,
+    Debug,
+    Serialize,
+    Deserialize,
+    SerialEncodable,
+    SerialDecodable,
+    PartialEq,
+    PartialOrd,
 )]
 )]
 pub struct Timestamp(pub i64);
 pub struct Timestamp(pub i64);