phoenix 0.1.2

Rust client for Phoenix channels
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use serde_json::Value;
use event::Event;

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