From 28cffdde16fe05573cc67eb2dfdc9f66e4789425 Mon Sep 17 00:00:00 2001 From: Akulij Date: Thu, 1 May 2025 14:50:34 +0300 Subject: [PATCH] create literal field in CallbackInfo reason: to get used literal of button, for e.g. to edit literals by clicking buttons --- src/db/callback_info.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/db/callback_info.rs b/src/db/callback_info.rs index 65de1af..39497e6 100644 --- a/src/db/callback_info.rs +++ b/src/db/callback_info.rs @@ -16,6 +16,7 @@ where { pub _id: bson::oid::ObjectId, pub created_at: DateTime, + pub literal: Option, #[serde(flatten)] pub callback: C, } @@ -28,6 +29,7 @@ where Self { _id: Default::default(), created_at: Local::now().into(), + literal: None, callback, } }