pub struct RoleObject {
pub id: Snowflake,
pub name: String,
pub color: f64,
pub hoist: bool,
pub icon: Option<String>,
pub unicode_emoji: Option<String>,
pub position: u16,
pub permissions: String,
pub managed: bool,
pub mentionable: bool,
}Expand description
See https://discord.com/developers/docs/topics/permissions#role-object
Fields§
§id: Snowflake§name: String§color: f64§hoist: bool§icon: Option<String>§unicode_emoji: Option<String>§position: u16§permissions: String§managed: bool§mentionable: boolTrait Implementations§
Source§impl Clone for RoleObject
impl Clone for RoleObject
Source§fn clone(&self) -> RoleObject
fn clone(&self) -> RoleObject
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 RoleObject
impl Debug for RoleObject
Source§impl Default for RoleObject
impl Default for RoleObject
Source§fn default() -> RoleObject
fn default() -> RoleObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RoleObject
impl<'de> Deserialize<'de> for RoleObject
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 RoleObject
impl RefUnwindSafe for RoleObject
impl Send for RoleObject
impl Sync for RoleObject
impl Unpin for RoleObject
impl UnwindSafe for RoleObject
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