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 ==
.source§impl Serialize for RoleCreate
impl Serialize for RoleCreate
impl Eq for RoleCreate
impl StructuralEq for RoleCreate
impl StructuralPartialEq for RoleCreate
Auto Trait Implementations§
impl RefUnwindSafe for RoleCreate
impl Send for RoleCreate
impl Sync for RoleCreate
impl Unpin for RoleCreate
impl UnwindSafe for RoleCreate
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