watch-party/src/events.rs

9 lines
213 B
Rust
Raw Normal View History

2021-10-24 22:48:10 +00:00
use serde::{Deserialize, Serialize};
#[derive(Clone, Serialize, Deserialize)]
#[serde(tag = "op", content = "data")]
pub enum WatchEvent {
SetPlaying { playing: bool, time: u64 },
SetTime(u64),
}