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