Skip to main content

interstice_abi/
context.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Deserialize, Serialize)]
4pub struct RawReducerContext {
5    pub caller_node_id: String,
6}
7
8impl RawReducerContext {
9    pub fn new(caller_node_id: String) -> Self {
10        Self { caller_node_id }
11    }
12}
13
14#[derive(Debug, Clone, Deserialize, Serialize)]
15pub struct RawQueryContext {
16    pub caller_node_id: String,
17}
18
19impl RawQueryContext {
20    pub fn new(caller_node_id: String) -> Self {
21        Self { caller_node_id }
22    }
23}