Struct robespierre_models::server::Role [−][src]
pub struct Role {
pub name: String,
pub permissions: (ServerPermissions, ChannelPermissions),
pub color: Option<String>,
pub hoist: bool,
pub rank: Option<u32>,
}Expand description
A role.
Fields
name: StringThe name of the role.
permissions: (ServerPermissions, ChannelPermissions)The permissions the role has.
color: Option<String>The color “Valid html color”
- documentation
The documentation says that this is untrusted input, and should not be inserted anywhere. Example usage:
document.body.style.color = role.color;hoist: boolWhether this role is hoisted.
rank: Option<u32>The rank of this role.
The higher the rank, the lower in the role hierarchy it will be.
Trait Implementations
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
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Role
impl UnwindSafe for Role
Blanket Implementations
Mutably borrows from an owned value. Read more