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
use serde::{Deserialize, Serialize};

/// <https://discord.com/developers/docs/resources/channel#overwrite-object>
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct OverwritesApiType {
    pub id: String,
    #[serde(rename = "type")]
    pub type_: u8,
    pub allow: String,
    pub deny: String,
}