pub struct Role {
pub id: Snowflake,
pub name: String,
pub color: i32,
pub hoisted: bool,
pub position: i32,
pub managed: bool,
pub mentionable: bool,
}Expand description
Represents a Discord Role.
Fields§
§id: SnowflakeThe snowflake ID of this role.
name: StringThe name of this role.
color: i32The hexadecimal color code for this role.
hoisted: boolwhether or not this role is hoisted.
position: i32The position of this role.
managed: boolWhether or not this role is managed by an integration.
mentionable: boolWhether or not this role is mentionable.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Role
impl<'de> Deserialize<'de> for Role
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 Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnwindSafe for Role
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