#[non_exhaustive]pub struct ModifyGuildWelcomeScreen {
pub enabled: Patch<bool>,
pub welcome_channels: Patch<Vec<WelcomeScreenChannel>>,
pub description: Patch<CompactString>,
}Expand description
The body of Modify Guild Welcome Screen.
Every field is optional and can be cleared.
discord.js counterpart: RESTPatchAPIGuildWelcomeScreenJSONBody (discord-api-types).
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.enabled: Patch<bool>Whether the welcome screen is enabled.
welcome_channels: Patch<Vec<WelcomeScreenChannel>>The suggested channels (all of them).
description: Patch<CompactString>The guild description shown on the welcome screen.
Trait Implementations§
Source§impl Clone for ModifyGuildWelcomeScreen
impl Clone for ModifyGuildWelcomeScreen
Source§impl Debug for ModifyGuildWelcomeScreen
impl Debug for ModifyGuildWelcomeScreen
Source§impl Default for ModifyGuildWelcomeScreen
impl Default for ModifyGuildWelcomeScreen
impl Eq for ModifyGuildWelcomeScreen
Source§impl Hash for ModifyGuildWelcomeScreen
impl Hash for ModifyGuildWelcomeScreen
Source§impl PartialEq for ModifyGuildWelcomeScreen
impl PartialEq for ModifyGuildWelcomeScreen
Source§impl Serialize for ModifyGuildWelcomeScreen
impl Serialize for ModifyGuildWelcomeScreen
impl StructuralPartialEq for ModifyGuildWelcomeScreen
Auto Trait Implementations§
impl Freeze for ModifyGuildWelcomeScreen
impl RefUnwindSafe for ModifyGuildWelcomeScreen
impl Send for ModifyGuildWelcomeScreen
impl Sync for ModifyGuildWelcomeScreen
impl Unpin for ModifyGuildWelcomeScreen
impl UnsafeUnpin for ModifyGuildWelcomeScreen
impl UnwindSafe for ModifyGuildWelcomeScreen
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