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: ChannelType
Type of the channel.
This can be used to determine what fields might be available.
name: String
Name of the channel.
parent_id: Option<Id<ChannelMarker>>
ID of the channel the thread was created in.
permissions: Permissions
Computed 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 for InteractionChannel
impl PartialEq for InteractionChannel
source§impl Serialize for InteractionChannel
impl Serialize for InteractionChannel
impl Eq for InteractionChannel
impl StructuralPartialEq for InteractionChannel
Auto Trait Implementations§
impl Freeze for InteractionChannel
impl RefUnwindSafe for InteractionChannel
impl Send for InteractionChannel
impl Sync for InteractionChannel
impl Unpin for InteractionChannel
impl UnwindSafe for InteractionChannel
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)