migration to JS engine #1

Merged
akulij merged 131 commits from dev into main 2025-05-31 08:49:52 +00:00
Showing only changes of commit f8c63e5315 - Show all commits

View File

@ -421,6 +421,15 @@ pub struct BotMessage {
handler: Option<BotFunction>, handler: Option<BotFunction>,
} }
impl BotMessage {
pub fn fill_literal(&self, l: String) -> Self {
BotMessage {
literal: self.clone().literal.or(Some(l)),
..self.clone()
}
}
}
impl Parcelable<BotFunction> for BotMessage { impl Parcelable<BotFunction> for BotMessage {
fn get_field(&mut self, name: &str) -> ParcelableResult<ParcelType<BotFunction>> { fn get_field(&mut self, name: &str) -> ParcelableResult<ParcelType<BotFunction>> {
match name { match name {