pub struct Role {
pub name: String,
pub permissions: OverrideField,
pub colour: Option<String>,
pub hoist: bool,
pub rank: i64,
}Expand description
Representation of a server role
Fields§
§name: StringRole name
permissions: OverrideFieldPermissions available to this role
colour: Option<String>Colour used for this role
This can be any valid CSS colour
hoist: boolWhether this role should be shown separately on the member sidebar
rank: i64Ranking of this role
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