pub struct Role {
pub id: Snowflake,
pub name: String,
pub color: i32,
pub hoist: bool,
pub icon: Option<String>,
pub unicode_emoji: Option<String>,
pub position: i32,
pub permissions: Permissions,
pub managed: bool,
pub mentionable: bool,
pub tags: Option<RoleTags>,
}Expand description
Fields§
§id: Snowflakerole id
name: Stringrole name
color: i32integer representation of hexadecimal color code
hoist: boolif this role is pinned in the user listing
icon: Option<String>role icon hash
unicode_emoji: Option<String>role unicode emoji
position: i32position of this role
permissions: Permissionspermission bit set
managed: boolwhether this role is managed by an integration
mentionable: boolwhether this role is mentionable
the tags this role has
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
Source§impl Mentionable for Role
impl Mentionable for Role
fn to_mention(&self) -> String
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