pub struct VoiceState {
pub guild_id: Snowflake,
pub channel_id: Option<Snowflake>,
pub user_id: Snowflake,
pub member: GuildMember,
pub session_id: String,
pub deaf: bool,
pub mute: bool,
pub self_deaf: bool,
pub self_mute: bool,
pub suppress: bool,
}Expand description
Represents a user’s voice connection status.
Fields§
§guild_id: SnowflakeThe guild ID of the guild this voice state belongs to.
channel_id: Option<Snowflake>The channel ID of the channel the user is connected to.
user_id: SnowflakeThe user ID of the user this voice state belongs to.
member: GuildMemberThe guild member that this voice state belongs to.
session_id: StringThe session ID of this voice state.
deaf: boolWhether or not the user is deafened on the server.
mute: boolWhether or not the user is muted on the server.
self_deaf: boolWhether or not the user is locally deaf.
self_mute: boolWhether or not the user is locally muted.
suppress: boolWhether or not the user was muted by the current user.
Trait Implementations§
Source§impl Clone for VoiceState
impl Clone for VoiceState
Source§fn clone(&self) -> VoiceState
fn clone(&self) -> VoiceState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VoiceState
impl Debug for VoiceState
Source§impl Default for VoiceState
impl Default for VoiceState
Source§fn default() -> VoiceState
fn default() -> VoiceState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VoiceState
impl<'de> Deserialize<'de> for VoiceState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VoiceState
impl RefUnwindSafe for VoiceState
impl Send for VoiceState
impl Sync for VoiceState
impl Unpin for VoiceState
impl UnwindSafe for VoiceState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more