Enum robespierre_models::channel::PartialChannel [−][src]
pub enum PartialChannel {
SavedMessages {
id: Option<ChannelId>,
user: Option<UserId>,
nonce: Option<String>,
},
DirectMessage {
id: Option<ChannelId>,
recipients: Option<Vec<UserId>>,
last_message: Option<LastMessageData>,
nonce: Option<String>,
},
Group {
id: Option<ChannelId>,
recipients: Option<Vec<UserId>>,
name: Option<String>,
owner: Option<UserId>,
description: Option<String>,
last_message: Option<LastMessageData>,
icon: Option<Attachment>,
permissions: Option<ChannelPermissions>,
nonce: Option<String>,
},
TextChannel {
id: Option<ChannelId>,
server: Option<ServerId>,
name: Option<String>,
description: Option<String>,
icon: Option<Attachment>,
default_permissions: Option<ChannelPermissions>,
role_permissions: Option<HashMap<RoleId, ChannelPermissions>>,
last_message: Option<MessageId>,
nonce: Option<String>,
},
VoiceChannel {
id: Option<ChannelId>,
server: Option<ServerId>,
name: Option<String>,
description: Option<String>,
icon: Option<Attachment>,
default_permissions: Option<ChannelPermissions>,
role_permissions: Option<HashMap<RoleId, ChannelPermissions>>,
nonce: Option<String>,
},
}Expand description
A channel where all the fields are optional, and can be treated as a patch that
can be applied to a Channel.
Variants
Fields of DirectMessage
Fields of Group
Fields of TextChannel
Fields of VoiceChannel
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for PartialChannel
impl Send for PartialChannel
impl Sync for PartialChannel
impl Unpin for PartialChannel
impl UnwindSafe for PartialChannel
Blanket Implementations
Mutably borrows from an owned value. Read more