Struct twilight_model::gateway::payload::incoming::RoleCreate
source · pub struct RoleCreate {
pub guild_id: Id<GuildMarker>,
pub role: Role,
}
Fields§
§guild_id: Id<GuildMarker>
§role: Role
Trait Implementations§
source§impl Clone for RoleCreate
impl Clone for RoleCreate
source§fn clone(&self) -> RoleCreate
fn clone(&self) -> RoleCreate
Returns a copy 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 RoleCreate
impl Debug for RoleCreate
source§impl<'de> Deserialize<'de> for RoleCreate
impl<'de> Deserialize<'de> for RoleCreate
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
source§impl Hash for RoleCreate
impl Hash for RoleCreate
source§impl PartialEq<RoleCreate> for RoleCreate
impl PartialEq<RoleCreate> for RoleCreate
source§fn eq(&self, other: &RoleCreate) -> bool
fn eq(&self, other: &RoleCreate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.