pub struct InteractionChannel {
pub id: Id<ChannelMarker>,
pub kind: ChannelType,
pub name: String,
pub parent_id: Option<Id<ChannelMarker>>,
pub permissions: Permissions,
pub thread_metadata: Option<ThreadMetadata>,
}Expand description
Partial channel resolved from an Interaction.
Fields§
§id: Id<ChannelMarker>ID of the channel.
kind: ChannelTypeType of the channel.
This can be used to determine what fields might be available.
name: StringName of the channel.
parent_id: Option<Id<ChannelMarker>>ID of the channel the thread was created in.
permissions: PermissionsComputed permissions, including overwrites, for the invoking user in the channel.
thread_metadata: Option<ThreadMetadata>Metadata about a thread.
Trait Implementations§
source§impl Clone for InteractionChannel
impl Clone for InteractionChannel
source§fn clone(&self) -> InteractionChannel
fn clone(&self) -> InteractionChannel
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 InteractionChannel
impl Debug for InteractionChannel
source§impl<'de> Deserialize<'de> for InteractionChannel
impl<'de> Deserialize<'de> for InteractionChannel
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
source§impl PartialEq<InteractionChannel> for InteractionChannel
impl PartialEq<InteractionChannel> for InteractionChannel
source§fn eq(&self, other: &InteractionChannel) -> bool
fn eq(&self, other: &InteractionChannel) -> bool
This method tests for
self and other values to be equal, and is used
by ==.