summaryrefslogtreecommitdiff
path: root/common/rust/src/payloads.rs
diff options
context:
space:
mode:
authorMatthieu <matthieu@developershouse.xyz>2021-09-17 18:41:56 +0400
committerMatthieu <matthieu@developershouse.xyz>2021-09-17 18:41:56 +0400
commit469a8fb1ea7b689399c30badbf33fc467531c561 (patch)
tree8ea3caf86cc00c8c3b37287b6a7b1774bb5e8895 /common/rust/src/payloads.rs
parentba0170ea15d6ebc1c9049f02adabd1ee4df6de64 (diff)
basic com implementation & cache base
Diffstat (limited to 'common/rust/src/payloads.rs')
-rw-r--r--common/rust/src/payloads.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/rust/src/payloads.rs b/common/rust/src/payloads.rs
new file mode 100644
index 0000000..1957077
--- /dev/null
+++ b/common/rust/src/payloads.rs
@@ -0,0 +1,9 @@
+use serde::{Deserialize, Serialize};
+
+/// Payload send to the nova cache queues
+#[derive(Serialize, Deserialize, Debug, Clone)]
+#[serde(bound(deserialize = "T: Deserialize<'de> + std::default::Default + Clone"))]
+pub struct CachePayload<T> {
+ pub tracing: (),
+ pub data: T
+}