فهرست منبع

src/util/time.rs: added copy trait

aggstam 4 سال پیش
والد
کامیت
6163de04d9
1فایلهای تغییر یافته به همراه9 افزوده شده و 1 حذف شده
  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);