summaryrefslogtreecommitdiff
path: root/common/rust/src/payloads.rs
blob: 6eb35c8d9b2dc3ff72cfc67f03712700cc68eb08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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: Tracing,
    pub data: T
}

#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Tracing {
    pub node_id: String,
    pub span: Option<String>
}