Struct twilight_model::voice::VoiceState
source · 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: boolWhether 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: boolWhether this user is server muted.
self_deaf: boolWhether this user is locally deafened.
self_mute: boolWhether this user is locally muted.
self_stream: boolWhether this user is streaming using “Go Live”.
self_video: boolWhether this user’s camera is enabled.
session_id: StringSession ID for this voice state.
Used to establish a voice websocket connection.
suppress: boolWhether this user is suppressed from speaking.
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
sourceimpl Clone for VoiceState
impl Clone for VoiceState
sourcefn clone(&self) -> VoiceState
fn clone(&self) -> VoiceState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for VoiceState
impl Debug for VoiceState
sourceimpl<'de> Deserialize<'de> for VoiceState
impl<'de> Deserialize<'de> for VoiceState
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for VoiceState
impl Hash for VoiceState
sourceimpl PartialEq<VoiceState> for VoiceState
impl PartialEq<VoiceState> for VoiceState
sourcefn eq(&self, other: &VoiceState) -> bool
fn eq(&self, other: &VoiceState) -> bool
sourceimpl Serialize for VoiceState
impl Serialize for VoiceState
impl Eq for VoiceState
impl StructuralEq for VoiceState
impl StructuralPartialEq for VoiceState
Auto Trait Implementations
impl RefUnwindSafe for VoiceState
impl Send for VoiceState
impl Sync for VoiceState
impl Unpin for VoiceState
impl UnwindSafe for VoiceState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more