#[non_exhaustive]pub struct GuildBanAdd {
pub guild_id: GuildId,
pub user: User,
}Expand description
The data of the Guild Ban Add
dispatch event (requires BAN_MEMBERS or VIEW_AUDIT_LOG).
discord.js counterpart: the GuildBanAdd 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.
user: UserThe banned user.
Trait Implementations§
Source§impl Clone for GuildBanAdd
impl Clone for GuildBanAdd
Source§impl Debug for GuildBanAdd
impl Debug for GuildBanAdd
Source§impl<'de> Deserialize<'de> for GuildBanAdd
impl<'de> Deserialize<'de> for GuildBanAdd
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 GuildBanAdd
Source§impl PartialEq for GuildBanAdd
impl PartialEq for GuildBanAdd
Source§impl Serialize for GuildBanAdd
impl Serialize for GuildBanAdd
impl StructuralPartialEq for GuildBanAdd
Auto Trait Implementations§
impl Forget for GuildBanAdd
impl Freeze for GuildBanAdd
impl Move for GuildBanAdd
impl RefUnwindSafe for GuildBanAdd
impl Send for GuildBanAdd
impl Sync for GuildBanAdd
impl Unpin for GuildBanAdd
impl UnsafeUnpin for GuildBanAdd
impl UnwindSafe for GuildBanAdd
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