# Struct command::object::Role

> A role. Visible to every member.

`zaun_community_protocol::command::object::Role` · Struct

```rust
pub struct Role { … }
```

A role. Visible to every member.

## Fields

### `role_id: RoleId`

Host-assigned id; all-zero for `@everyone`.

### `name: String`

1–100 scalars.

### `color: Option<u32>`

RGB `0x000000`–`0xFFFFFF`, or none.

### `hoist: bool`

Shown separately in member lists.

### `mentionable: bool`

May be mentioned by anyone.

### `position: u32`

0 for `@everyone`; 1..n otherwise, higher = more authority.

### `permissions: Permissions`

Granted bits; unknown bits are preserved (permissions the protocol).

### `managed_by: Option<BotId>`

Only on a bot's managed role.

## Trait implementations

`Clone`, `Debug`, `Deserialize<'de>`, `Eq`, `PartialEq`, `Serialize`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/command/object/role/struct.Role.html)
