titanium_model/
voice_state.rs

1use crate::Snowflake;
2use crate::TitanString;
3
4/// Partial voice state from GUILD_CREATE.
5#[derive(Debug, Clone, serde::Deserialize, serde::Serialize)]
6pub struct PartialVoiceState<'a> {
7    pub channel_id: Option<Snowflake>,
8    pub user_id: Snowflake,
9
10    pub session_id: TitanString<'a>,
11    pub deaf: bool,
12    pub mute: bool,
13    pub self_deaf: bool,
14    pub self_mute: bool,
15    #[serde(default)]
16    pub self_video: bool,
17    pub suppress: bool,
18    #[serde(default)]
19    pub request_to_speak_timestamp: Option<TitanString<'a>>,
20}