Struct serenity::model::voice::VoiceState [−][src]
#[non_exhaustive]pub struct VoiceState {Show 14 fields
pub channel_id: Option<ChannelId>,
pub deaf: bool,
pub guild_id: Option<GuildId>,
pub member: Option<Member>,
pub mute: bool,
pub self_deaf: bool,
pub self_mute: bool,
pub self_stream: Option<bool>,
pub self_video: bool,
pub session_id: String,
pub suppress: bool,
pub token: Option<String>,
pub user_id: UserId,
pub request_to_speak_timestamp: Option<DateTime<Utc>>,
}
Expand description
A user’s state within a voice channel.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.channel_id: Option<ChannelId>
deaf: bool
guild_id: Option<GuildId>
member: Option<Member>
mute: bool
self_deaf: bool
self_mute: bool
self_stream: Option<bool>
self_video: bool
session_id: String
suppress: bool
token: Option<String>
user_id: UserId
request_to_speak_timestamp: Option<DateTime<Utc>>
When unsuppressed, non-bot users will have this set to the current time.
Bot users will be set to None
. When suppressed, the user will have
their Self::request_to_speak_timestamp
removed.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more