# Struct command::channel::Update

> `channel.update`: any of the fields; `null` clears only `topic` and `parent_id`.

`zaun_community_protocol::command::channel::Update` · Struct

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

`channel.update`: any of the fields; `null` clears only `topic` and `parent_id`.

## Fields

### `channel_id: Option<ChannelId>`

The channel (or on the envelope).

### `name: Patch<String>`

New name.

### `topic: Patch<String>`

New topic; `null` clears.

### `parent_id: Patch<ChannelId>`

New parent; `null` moves to the top level.

### `slowmode_s: Patch<u32>`

New slowmode.

### `locked: Patch<bool>`

Lock or unlock.

### `typing: Patch<TypingMode>`

Who sees typing: `named`, `anonymous` or `off`.

### `retention: Patch<Retention>`

New retention.

### `sync_with_parent: Patch<bool>`

Re-link to or detach from the parent's overrides.

### `history: Patch<HistoryAccess>`

New history policy (increments `history_rev`).

### `public_distribution: Patch<bool>`

Experimental (Appendix A); owner only.

### `user_limit: Patch<u32>`

Voice channels only: new `user_limit` (1–99); `null` removes it.

## Trait implementations

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

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