migration to JS engine #1
@ -254,7 +254,7 @@ fn print(s: String) {
|
|||||||
println!("{s}");
|
println!("{s}");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||||
pub struct BotConfig {
|
pub struct BotConfig {
|
||||||
version: f64,
|
version: f64,
|
||||||
}
|
}
|
||||||
@ -555,7 +555,7 @@ impl Parcelable<BotFunction> for BotMessage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||||
pub struct BotDialog {
|
pub struct BotDialog {
|
||||||
pub commands: HashMap<String, BotMessage>,
|
pub commands: HashMap<String, BotMessage>,
|
||||||
stateful_msg_handlers: HashMap<String, BotMessage>,
|
stateful_msg_handlers: HashMap<String, BotMessage>,
|
||||||
@ -573,7 +573,7 @@ impl Parcelable<BotFunction> for BotDialog {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||||
pub struct RunnerConfig {
|
pub struct RunnerConfig {
|
||||||
config: BotConfig,
|
config: BotConfig,
|
||||||
pub dialog: BotDialog,
|
pub dialog: BotDialog,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user