Struct rive_models::channel::PartialChannel
source · pub struct PartialChannel {
pub name: Option<String>,
pub owner: Option<String>,
pub description: Option<String>,
pub icon: Option<Attachment>,
pub nsfw: Option<bool>,
pub active: Option<bool>,
pub permissions: Option<Permission>,
pub role_permissions: Option<HashMap<String, OverrideField>>,
pub default_permissions: Option<OverrideField>,
pub last_message_id: Option<String>,
}Expand description
Partial values of Channel
Fields§
§name: Option<String>Display name of the channel
owner: Option<String>User id of the owner of the group
description: Option<String>Channel description
icon: Option<Attachment>Custom icon attachment
nsfw: Option<bool>Whether this channel is marked as not safe for work
active: Option<bool>Whether this direct message channel is currently open on both sides
permissions: Option<Permission>Permissions assigned to members of this channel
role_permissions: Option<HashMap<String, OverrideField>>Permissions assigned based on role to this channel
default_permissions: Option<OverrideField>Default permissions assigned to users in this channel
last_message_id: Option<String>Id of the last message sent in this channel
Trait Implementations§
source§impl Clone for PartialChannel
impl Clone for PartialChannel
source§fn clone(&self) -> PartialChannel
fn clone(&self) -> PartialChannel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PartialChannel
impl Debug for PartialChannel
source§impl Default for PartialChannel
impl Default for PartialChannel
source§fn default() -> PartialChannel
fn default() -> PartialChannel
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PartialChannel
impl<'de> Deserialize<'de> for PartialChannel
source§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