# Struct command::role::Update

> `role.update`: any of the `role.create` fields.

`zaun_community_protocol::command::role::Update` · Struct

```rust
pub struct Update { … }
```

`role.update`: any of the `role.create` fields.

SPEC: "any of the fields above" is read as the `role.create` fields (positions change
only through `role.reorder`).

## Fields

### `role_id: RoleId`

The role.

### `name: Patch<String>`

New name.

### `color: Patch<u32>`

New colour; `null` clears.

### `hoist: Patch<bool>`

New hoist flag.

### `mentionable: Patch<bool>`

New mentionable flag.

### `permissions: Patch<Permissions>`

New permission set.

## Trait implementations

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

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