pub struct GuildRoleCreateOrUpdate {
pub guild_id: Snowflake,
pub role: Role,
}Expand description
Represents a packet sent by the gateway when a guild role is created/updated.
Fields§
§guild_id: SnowflakeThe guild ID of the guild.
role: RoleThe role that was created.
Trait Implementations§
Source§impl Clone for GuildRoleCreateOrUpdate
impl Clone for GuildRoleCreateOrUpdate
Source§fn clone(&self) -> GuildRoleCreateOrUpdate
fn clone(&self) -> GuildRoleCreateOrUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GuildRoleCreateOrUpdate
impl Debug for GuildRoleCreateOrUpdate
Source§impl<'de> Deserialize<'de> for GuildRoleCreateOrUpdate
impl<'de> Deserialize<'de> for GuildRoleCreateOrUpdate
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
Auto Trait Implementations§
impl Freeze for GuildRoleCreateOrUpdate
impl RefUnwindSafe for GuildRoleCreateOrUpdate
impl Send for GuildRoleCreateOrUpdate
impl Sync for GuildRoleCreateOrUpdate
impl Unpin for GuildRoleCreateOrUpdate
impl UnwindSafe for GuildRoleCreateOrUpdate
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