1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
use serde_json::Value;

#[derive(Serialize, Deserialize, Debug)]
pub struct Message {
    pub topic: String,
    pub event: String,
    #[serde(rename = "ref")]
	pub reference: Option<String>,
    pub join_ref: Option<String>,
	pub payload: Value,
}