pub struct UpdateVoiceState {
pub guild_id: Snowflake,
pub channel_id: Snowflake,
pub self_mute: bool,
pub self_deaf: bool,
}Expand description
An Update Voice State packet.
Fields§
§guild_id: SnowflakeThe guild ID of the guild.
channel_id: SnowflakeThe channel ID of the voice channel.
self_mute: boolWhether or not to mute the current user.
self_deaf: boolWhether or not to deafen the current user.
Trait Implementations§
Source§impl Clone for UpdateVoiceState
impl Clone for UpdateVoiceState
Source§fn clone(&self) -> UpdateVoiceState
fn clone(&self) -> UpdateVoiceState
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 UpdateVoiceState
impl Debug for UpdateVoiceState
Source§impl<'de> Deserialize<'de> for UpdateVoiceState
impl<'de> Deserialize<'de> for UpdateVoiceState
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
Source§impl SendablePacket for UpdateVoiceState
impl SendablePacket for UpdateVoiceState
Auto Trait Implementations§
impl Freeze for UpdateVoiceState
impl RefUnwindSafe for UpdateVoiceState
impl Send for UpdateVoiceState
impl Sync for UpdateVoiceState
impl Unpin for UpdateVoiceState
impl UnwindSafe for UpdateVoiceState
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