Struct dasi::model::Role [] [src]

pub struct Role {
    pub id: RoleId,
    pub name: String,
    pub color: u64,
    pub hoist: bool,
    pub managed: bool,
    pub position: i64,
    pub mentionable: bool,
    pub permissions: Permissions,
}

Information about a role

Fields

id
name
color

Color in 0xRRGGBB form

hoist
managed
position
mentionable
permissions

Methods

impl Role

fn decode(value: Value) -> Result<Role>

Trait Implementations

Derived Implementations

impl Clone for Role

fn clone(&self) -> Role

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for Role

fn fmt(&self, __arg_0: &mut Formatter) -> Result