1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use serde::{Deserialize, Serialize};
use tea_codec::{pricing::Priced, serde::TypeId};
#[derive(Debug, Clone, Copy, Serialize, Deserialize, TypeId)]
#[response(())]
pub struct PreInvoke;
#[derive(Debug, Clone, Copy, Serialize, Deserialize, TypeId)]
#[response(())]
pub struct PostInvoke;
#[derive(Debug, Clone, Copy, Serialize, Deserialize, TypeId, Priced)]
#[price(100)] #[response(())]
pub struct Activate;
#[derive(Debug, Clone, Copy, Serialize, Deserialize, TypeId)]
#[response(())]
pub struct Deactivate;