#[non_exhaustive]pub struct WebhooksUpdate {
pub guild_id: GuildId,
pub channel_id: ChannelId,
}Expand description
The data of the Webhooks Update dispatch event: a channel’s webhooks changed.
discord.js counterpart: the WebhooksUpdate event.
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.guild_id: GuildIdThe guild.
channel_id: ChannelIdThe channel.
Trait Implementations§
Source§impl Clone for WebhooksUpdate
impl Clone for WebhooksUpdate
impl Copy for WebhooksUpdate
Source§impl Debug for WebhooksUpdate
impl Debug for WebhooksUpdate
Source§impl<'de> Deserialize<'de> for WebhooksUpdate
impl<'de> Deserialize<'de> for WebhooksUpdate
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 WebhooksUpdate
Source§impl Hash for WebhooksUpdate
impl Hash for WebhooksUpdate
Source§impl PartialEq for WebhooksUpdate
impl PartialEq for WebhooksUpdate
Source§impl Serialize for WebhooksUpdate
impl Serialize for WebhooksUpdate
impl StructuralPartialEq for WebhooksUpdate
Auto Trait Implementations§
impl Freeze for WebhooksUpdate
impl RefUnwindSafe for WebhooksUpdate
impl Send for WebhooksUpdate
impl Sync for WebhooksUpdate
impl Unpin for WebhooksUpdate
impl UnsafeUnpin for WebhooksUpdate
impl UnwindSafe for WebhooksUpdate
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