1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
use crate::events::Source; use serde_derive::Deserialize; #[derive(Deserialize, Debug)] pub struct BeaconEvent { #[serde(rename = "replyToken")] pub reply_token: String, pub mode: String, pub timestamp: i64, pub source: Source, pub beacon: Beacon, } #[derive(Deserialize, Debug)] pub struct Beacon { pub hwid: String, pub r#type: String, pub dm: Option<String>, }