#[non_exhaustive]pub struct WidgetChannel {
pub id: ChannelId,
pub name: CompactString,
pub position: i32,
}Expand description
A channel listed in a Widget.
discord.js counterpart: WidgetChannel.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: ChannelIdThe channel’s ID.
name: CompactStringThe channel’s name.
position: i32The channel’s position.
Trait Implementations§
Source§impl Clone for WidgetChannel
impl Clone for WidgetChannel
Source§impl Debug for WidgetChannel
impl Debug for WidgetChannel
Source§impl<'de> Deserialize<'de> for WidgetChannel
impl<'de> Deserialize<'de> for WidgetChannel
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
impl Eq for WidgetChannel
Source§impl Hash for WidgetChannel
impl Hash for WidgetChannel
Source§impl PartialEq for WidgetChannel
impl PartialEq for WidgetChannel
Source§impl Serialize for WidgetChannel
impl Serialize for WidgetChannel
impl StructuralPartialEq for WidgetChannel
Auto Trait Implementations§
impl Freeze for WidgetChannel
impl RefUnwindSafe for WidgetChannel
impl Send for WidgetChannel
impl Sync for WidgetChannel
impl Unpin for WidgetChannel
impl UnsafeUnpin for WidgetChannel
impl UnwindSafe for WidgetChannel
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