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 duplicate 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<PartialChannel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PartialChannel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PartialChannel
impl RefUnwindSafe for PartialChannel
impl Send for PartialChannel
impl Sync for PartialChannel
impl Unpin for PartialChannel
impl UnwindSafe for PartialChannel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more