/// see https://docs.ntfy.sh/subscribe/api/#json-message-format #[derive(Debug, serde::Deserialize)] #[allow(unused)] pub struct Message { pub id: String, pub time: u64, pub expires: Option, pub event: Event, pub topic: String, pub message: Option, pub title: Option, pub tags: Option>, pub priority: Option, pub click: Option, // omitted: actions, attachment } #[derive(Debug, serde::Deserialize, PartialEq, Eq)] #[serde(rename_all = "snake_case")] pub enum Event { Open, Keepalive, Message, PollRequest }