pub struct RoleApiType {
pub id: String,
pub name: String,
pub color: u64,
pub hoist: bool,
pub icon: Option<String>,
pub unicode_emoji: Option<String>,
pub position: u64,
pub permissions: String,
pub managed: bool,
pub mentionable: bool,
pub tags: Option<RoleTagApiType>,
pub flags: Option<u32>,
}Fields§
§id: Stringrole id
name: Stringrole name
color: u64integer 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: u64position of this role
permissions: Stringpermission bit set
managed: boolwhether this role is managed by an integration
mentionable: boolwhether this role is mentionable
the tags this role has
flags: Option<u32>role flags combined as a bitfield
Trait Implementations§
Source§impl Clone for RoleApiType
impl Clone for RoleApiType
Source§fn clone(&self) -> RoleApiType
fn clone(&self) -> RoleApiType
Returns a duplicate 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 RoleApiType
impl Debug for RoleApiType
Source§impl<'de> Deserialize<'de> for RoleApiType
impl<'de> Deserialize<'de> for RoleApiType
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 RoleApiType
impl RefUnwindSafe for RoleApiType
impl Send for RoleApiType
impl Sync for RoleApiType
impl Unpin for RoleApiType
impl UnwindSafe for RoleApiType
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