disruption_types 0.2.0

Types for communicating with the Discord API and gateway
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use serde::{Deserialize, Serialize};

/// <https://discord.com/developers/docs/topics/gateway#resume-resume-structure>
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct ResumePayloadData {
    /// session token
    pub token: String,
    /// session id
    pub session_id: String,
    /// last sequence number received
    pub seq: u64,
}