discord_client_structs 0.2.0

Discord API/gateway structs with serde support
Documentation
use crate::structs::channel::deserialize_string_to_u64;
use crate::structs::misc::MuteConfig;
use discord_client_macros::Flags;
use serde::Deserialize;

#[derive(Debug, Deserialize, Clone, Flags)]
pub struct ChannelOverride {
    #[serde(deserialize_with = "deserialize_string_to_u64")]
    #[serde(serialize_with = "serialize_u64_as_string")]
    pub channel_id: u64,
    pub collapsed: bool,
    #[flag_enum(
        "UnreadsOnlyMentions=9,UnreadsAllMessages=10,Favorited=11,OptInEnabled=12,NewForumThreadsOff=13,NewForumThreadsOn=14"
    )]
    pub flags: Option<u64>,
    pub message_notifications: u64,
    pub muted: bool,
    pub mute_config: Option<MuteConfig>,
}