#[non_exhaustive]pub struct WelcomeScreen {
pub description: Option<CompactString>,
pub welcome_channels: Vec<WelcomeScreenChannel>,
}Expand description
The welcome screen of a Community guild, shown to new members.
discord.js counterpart: WelcomeScreen.
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.description: Option<CompactString>The guild description shown on the welcome screen.
welcome_channels: Vec<WelcomeScreenChannel>Up to 5 suggested channels.
Trait Implementations§
Source§impl Clone for WelcomeScreen
impl Clone for WelcomeScreen
Source§impl Debug for WelcomeScreen
impl Debug for WelcomeScreen
Source§impl<'de> Deserialize<'de> for WelcomeScreen
impl<'de> Deserialize<'de> for WelcomeScreen
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 WelcomeScreen
Source§impl PartialEq for WelcomeScreen
impl PartialEq for WelcomeScreen
Source§impl Serialize for WelcomeScreen
impl Serialize for WelcomeScreen
impl StructuralPartialEq for WelcomeScreen
Auto Trait Implementations§
impl Forget for WelcomeScreen
impl Freeze for WelcomeScreen
impl Move for WelcomeScreen
impl RefUnwindSafe for WelcomeScreen
impl Send for WelcomeScreen
impl Sync for WelcomeScreen
impl Unpin for WelcomeScreen
impl UnsafeUnpin for WelcomeScreen
impl UnwindSafe for WelcomeScreen
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