Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};

/// Preview information about a broadcast
#[serde_with::skip_serializing_none]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(rename_all = "camelCase")]
pub struct Preview {
	pub name: Option<String>,   // name
	pub avatar: Option<String>, // avatar

	pub audio: Option<bool>,  // audio enabled
	pub video: Option<bool>,  // video enabled
	pub screen: Option<bool>, // screen sharing

	pub typing: Option<bool>, // actively typing
	pub chat: Option<bool>,   // chatted recently
}