#[non_exhaustive]pub struct WelcomeScreenChannel {
pub channel_id: ChannelId,
pub description: CompactString,
pub emoji_id: Option<EmojiId>,
pub emoji_name: Option<CompactString>,
}Expand description
A channel suggested on the welcome screen.
discord.js counterpart: WelcomeChannel.
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.channel_id: ChannelIdThe channel’s ID.
description: CompactStringThe description shown for the channel.
emoji_id: Option<EmojiId>The custom emoji’s ID, for a custom emoji.
emoji_name: Option<CompactString>The custom emoji’s name, the Unicode emoji itself, or None without an emoji.
Implementations§
Source§impl WelcomeScreenChannel
impl WelcomeScreenChannel
Sourcepub fn new(channel_id: ChannelId, description: impl Into<CompactString>) -> Self
pub fn new(channel_id: ChannelId, description: impl Into<CompactString>) -> Self
A suggested channel without an emoji.
discord.js counterpart: WelcomeChannelData.
Trait Implementations§
Source§impl Clone for WelcomeScreenChannel
impl Clone for WelcomeScreenChannel
Source§impl Debug for WelcomeScreenChannel
impl Debug for WelcomeScreenChannel
Source§impl<'de> Deserialize<'de> for WelcomeScreenChannel
impl<'de> Deserialize<'de> for WelcomeScreenChannel
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 WelcomeScreenChannel
Source§impl Hash for WelcomeScreenChannel
impl Hash for WelcomeScreenChannel
Source§impl PartialEq for WelcomeScreenChannel
impl PartialEq for WelcomeScreenChannel
Source§impl Serialize for WelcomeScreenChannel
impl Serialize for WelcomeScreenChannel
impl StructuralPartialEq for WelcomeScreenChannel
Auto Trait Implementations§
impl Forget for WelcomeScreenChannel
impl Freeze for WelcomeScreenChannel
impl Move for WelcomeScreenChannel
impl RefUnwindSafe for WelcomeScreenChannel
impl Send for WelcomeScreenChannel
impl Sync for WelcomeScreenChannel
impl Unpin for WelcomeScreenChannel
impl UnsafeUnpin for WelcomeScreenChannel
impl UnwindSafe for WelcomeScreenChannel
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