#[non_exhaustive]pub struct ModifyGuildWidget {
pub enabled: Option<bool>,
pub channel_id: Patch<ChannelId>,
}Expand description
The body of Modify Guild Widget.
discord.js counterpart: RESTPatchAPIGuildWidgetSettingsJSONBody (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: Option<bool>Whether the widget is enabled.
channel_id: Patch<ChannelId>The channel the widget’s invite leads to.
Trait Implementations§
Source§impl Clone for ModifyGuildWidget
impl Clone for ModifyGuildWidget
impl Copy for ModifyGuildWidget
Source§impl Debug for ModifyGuildWidget
impl Debug for ModifyGuildWidget
Source§impl Default for ModifyGuildWidget
impl Default for ModifyGuildWidget
impl Eq for ModifyGuildWidget
Source§impl Hash for ModifyGuildWidget
impl Hash for ModifyGuildWidget
Source§impl PartialEq for ModifyGuildWidget
impl PartialEq for ModifyGuildWidget
Source§impl Serialize for ModifyGuildWidget
impl Serialize for ModifyGuildWidget
impl StructuralPartialEq for ModifyGuildWidget
Auto Trait Implementations§
impl Freeze for ModifyGuildWidget
impl RefUnwindSafe for ModifyGuildWidget
impl Send for ModifyGuildWidget
impl Sync for ModifyGuildWidget
impl Unpin for ModifyGuildWidget
impl UnsafeUnpin for ModifyGuildWidget
impl UnwindSafe for ModifyGuildWidget
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