Add code_btn to send JSON manually

This commit is contained in:
ranfdev
2023-10-25 18:09:11 +02:00
parent 933247e564
commit 464cf0ba43
5 changed files with 123 additions and 13 deletions

View File

@ -27,6 +27,7 @@ pub fn validate_topic(topic: &str) -> Result<&str, Error> {
pub struct Message {
pub topic: String,
pub message: Option<String>,
#[serde(default = "Default::default")]
pub time: u64,
#[serde(skip_serializing_if = "Option::is_none")]
pub title: Option<String>,