pub struct Role {
pub id: Snowflake,
pub name: String,
pub color: Option<u64>,
pub hoist: Option<bool>,
pub icon: Option<String>,
pub position: Option<i64>,
pub permissions: Option<String>,
pub managed: Option<bool>,
pub mentionable: Option<bool>,
}Expand description
A guild role.
Fields§
§id: Snowflake§name: String§color: Option<u64>Integer color value. 0 means no color.
hoist: Option<bool>Whether this role shows up separately in the member list.
icon: Option<String>§position: Option<i64>§permissions: Option<String>Permission bitfield.
managed: Option<bool>Managed roles are created by integrations (bot roles, booster role, etc).
mentionable: Option<bool>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 UnsafeUnpin 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