[][src]Struct serenity_voice_model::payload::Resume

pub struct Resume {
    pub server_id: GuildId,
    pub session_id: String,
    pub token: String,
}

Sent by the client after a disconnect to attempt to resume a session.

Fields

server_id: GuildId

GuildId which the target voice channel belongs to.

session_id: String

Authentication session received from Discord's main gateway as part of a "VOICE_STATE_UPDATE" message.

token: String

Authentication token received from Discord's main gateway as part of a "VOICE_SERVER_UPDATE" message.

Trait Implementations

impl Clone for Resume[src]

impl Debug for Resume[src]

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

impl Eq for Resume[src]

impl From<Resume> for Event[src]

impl Hash for Resume[src]

impl PartialEq<Resume> for Resume[src]

impl Serialize for Resume[src]

impl StructuralEq for Resume[src]

impl StructuralPartialEq for Resume[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.