use serde::{Deserialize, Serialize};
use std::collections::HashMap;
#[derive(Debug, Deserialize, Serialize)]
pub struct Notification {
pub title: String,
pub body: String,
}
#[derive(Debug, Deserialize, Serialize)]
pub struct DeviceMessage {
pub token: String,
pub notification: Option<Notification>,
pub data: Option<HashMap<String, String>>,
}
#[derive(Debug, Deserialize, Serialize)]
pub struct TopicMessage {
pub topic: String,
pub notification: Option<Notification>,
pub data: Option<HashMap<String, String>>,
}