[][src]Struct spectacles_model::voice::VoiceState

pub struct VoiceState {
    pub guild_id: String,
    pub channel_id: Option<String>,
    pub user_id: String,
    pub member: GuildMember,
    pub session_id: String,
    pub deaf: bool,
    pub muted: bool,
    pub self_deaf: bool,
    pub self_mute: bool,
    pub suppress: bool,
}

Represents a user's voice connection status.

Fields

guild_id: String

The guild ID of the guild this voice state belongs to.

channel_id: Option<String>

The channel ID of the channel the user is connected to.

user_id: String

The user ID of the user this voice state belongs to.

member: GuildMember

The guild member that this voice state belongs to.

session_id: String

The session ID of this voice state.

deaf: bool

Whether or not the user is deafened on the server.

muted: bool

Whether or not the user is muted on the server.

self_deaf: bool

Whether or not the user is locally deaf.

self_mute: bool

Whether or not the user is locally muted.

suppress: bool

Whether or not the user was muted by the current user.

Trait Implementations

impl Default for VoiceState[src]

impl Clone for VoiceState[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for VoiceState[src]

impl Serialize for VoiceState[src]

impl<'de> Deserialize<'de> for VoiceState[src]

Auto Trait Implementations

impl Send for VoiceState

impl Sync for VoiceState

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]