From c8c67b54e3cfafb3955b41188a19a06db0fb59b3 Mon Sep 17 00:00:00 2001 From: Akulij Date: Mon, 19 May 2025 23:54:08 +0500 Subject: [PATCH] make botFunction a struct --- src/botscript.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/botscript.rs b/src/botscript.rs index 3868b91..77edc28 100644 --- a/src/botscript.rs +++ b/src/botscript.rs @@ -17,7 +17,8 @@ pub enum ScriptError { pub type ScriptResult = Result; -pub type BotFunction = String; // temporal workaround +#[derive(Serialize, Deserialize, Debug, Clone)] +pub struct BotFunction(String); // temporal workaround // TODO: remove this function since it is suitable only for early development #[allow(clippy::print_stdout)]