Struct discord::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
[src]

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

fn mention(&self) -> Mention

Return a Mention which will ping members of this role.

Trait Implementations

Derived Implementations

impl Clone for Role
[src]

fn clone(&self) -> Role

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for Role
[src]

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

Formats the value using the given formatter.