diff options
| author | Matthieu <matthieu@developershouse.xyz> | 2021-09-17 18:41:56 +0400 |
|---|---|---|
| committer | Matthieu <matthieu@developershouse.xyz> | 2021-09-17 18:41:56 +0400 |
| commit | 469a8fb1ea7b689399c30badbf33fc467531c561 (patch) | |
| tree | 8ea3caf86cc00c8c3b37287b6a7b1774bb5e8895 /common/rust/src/payloads.rs | |
| parent | ba0170ea15d6ebc1c9049f02adabd1ee4df6de64 (diff) | |
basic com implementation & cache base
Diffstat (limited to 'common/rust/src/payloads.rs')
| -rw-r--r-- | common/rust/src/payloads.rs | 9 |
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 +} |
