pub struct VoiceState {Show 13 fields
pub channel_id: Option<Id<ChannelMarker>>,
pub deaf: bool,
pub guild_id: Option<Id<GuildMarker>>,
pub member: Option<Member>,
pub mute: bool,
pub self_deaf: bool,
pub self_mute: bool,
pub self_stream: bool,
pub self_video: bool,
pub session_id: String,
pub suppress: bool,
pub user_id: Id<UserMarker>,
pub request_to_speak_timestamp: Option<Timestamp>,
}
Expand description
User’s voice connection status.
Fields§
§channel_id: Option<Id<ChannelMarker>>
Channel this user is connected to.
None
corresponds to being disconnected.
deaf: bool
Whether this user is server deafened.
guild_id: Option<Id<GuildMarker>>
Guild this voice state is for.
member: Option<Member>
Member this voice state is for.
mute: bool
Whether this user is server muted.
self_deaf: bool
Whether this user is locally deafened.
self_mute: bool
Whether this user is locally muted.
self_stream: bool
Whether this user is streaming using “Go Live”.
self_video: bool
Whether this user’s camera is enabled.
session_id: String
Session ID for this voice state.
Used to establish a voice websocket connection.
suppress: bool
Whether the user’s permission to speak is denied.
Only applies to stage channels.
user_id: Id<UserMarker>
User this voice state is for.
request_to_speak_timestamp: Option<Timestamp>
When the user requested to speak.
§serde
This is serialized as an ISO 8601 timestamp in the format of “2021-01-01T01-01-01.010000+00:00”.
Trait Implementations§
source§impl Clone for VoiceState
impl Clone for VoiceState
source§fn clone(&self) -> VoiceState
fn clone(&self) -> VoiceState
Returns a copy 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<'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
source§impl Hash for VoiceState
impl Hash for VoiceState
source§impl PartialEq for VoiceState
impl PartialEq for VoiceState
source§impl Serialize for VoiceState
impl Serialize for VoiceState
impl Eq for VoiceState
impl StructuralPartialEq for VoiceState
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)