make botFunction a struct

This commit is contained in:
Akulij 2025-05-19 23:54:08 +05:00
parent 7dbad400cc
commit c8c67b54e3

View File

@ -17,7 +17,8 @@ pub enum ScriptError {
pub type ScriptResult<T> = Result<T, ScriptError>; pub type ScriptResult<T> = Result<T, ScriptError>;
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 // TODO: remove this function since it is suitable only for early development
#[allow(clippy::print_stdout)] #[allow(clippy::print_stdout)]