Struct twilight_model::voice::VoiceState
source · [−]pub struct VoiceState {Show 14 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 token: Option<String>,
pub user_id: Id<UserMarker>,
pub request_to_speak_timestamp: Option<Timestamp>,
}Fields
channel_id: Option<Id<ChannelMarker>>deaf: boolguild_id: Option<Id<GuildMarker>>member: Option<Member>mute: boolself_deaf: boolself_mute: boolself_stream: boolWhether this user is streaming via “Go Live”.
self_video: boolWhether this user’s camera is enabled.
session_id: Stringsuppress: booltoken: Option<String>user_id: Id<UserMarker>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