#[non_exhaustive]pub struct GuildRoleUpdate {
pub guild_id: GuildId,
pub role: Role,
}Expand description
The data of the Guild Role Update dispatch event.
discord.js counterpart: the GuildRoleUpdate 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.
role: RoleThe updated role.
Trait Implementations§
Source§impl Clone for GuildRoleUpdate
impl Clone for GuildRoleUpdate
Source§impl Debug for GuildRoleUpdate
impl Debug for GuildRoleUpdate
Source§impl<'de> Deserialize<'de> for GuildRoleUpdate
impl<'de> Deserialize<'de> for GuildRoleUpdate
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 GuildRoleUpdate
Source§impl PartialEq for GuildRoleUpdate
impl PartialEq for GuildRoleUpdate
Source§impl Serialize for GuildRoleUpdate
impl Serialize for GuildRoleUpdate
impl StructuralPartialEq for GuildRoleUpdate
Auto Trait Implementations§
impl Forget for GuildRoleUpdate
impl Freeze for GuildRoleUpdate
impl Move for GuildRoleUpdate
impl RefUnwindSafe for GuildRoleUpdate
impl Send for GuildRoleUpdate
impl Sync for GuildRoleUpdate
impl Unpin for GuildRoleUpdate
impl UnsafeUnpin for GuildRoleUpdate
impl UnwindSafe for GuildRoleUpdate
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