openzeppelin_relayer/models/
plugin.rs1use std::time::Duration;
2
3use serde::{Deserialize, Serialize};
4use utoipa::ToSchema;
5
6#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
7pub struct PluginModel {
8 pub id: String,
10 pub path: String,
12 #[schema(value_type = u64)]
14 pub timeout: Duration,
15 #[serde(default)]
17 pub emit_logs: bool,
18 #[serde(default)]
20 pub emit_traces: bool,
21}
22
23#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
24pub struct PluginCallRequest {
25 pub params: serde_json::Value,
27}