# Struct command::object::Channel

> A channel or category as members see it.

`zaun_community_protocol::command::object::Channel` · Struct

```rust
pub struct Channel { … }
```

A channel or category as members see it.

## Fields

### `channel_id: ChannelId`

Host-assigned id.

### `kind: ChannelKind`

The kind.

### `name: String`

1–100 scalars.

### `topic: Option<String>`

≤ 1 024 scalars.

### `parent_id: Option<ChannelId>`

The parent category; categories have none.

### `position: u32`

Position among siblings.

### `slowmode_s: u32`

0–21 600 s.

### `locked: bool`

The `locked` flag (permissions the protocol, step 7d).

### `typing: TypingMode`

Who sees typing in the channel; absent means `named`, and `named` is written
absent.

### `retention: Retention`

Retention settings.

### `sync_with_parent: bool`

Whether the effective overrides are the parent's (permissions the protocol).

### `history: HistoryAccess`

History access policy (ADR-0014).

### `history_rev: u64`

Incremented on each `history` change.

### `distribution: DistributionMode`

Host-chosen distribution mode; clients never send it.

### `overrides: Vec<Override>`

The channel's own overrides.

### `config: Map<String, Value>`

SPEC: shown only as `{}` in the protocol and never defined; kept as an opaque object.

### `head_seq: Option<u64>`

`sync.snapshot` only: the latest `channel_seq`.

### `user_limit: Option<u32>`

Voice channels: the most participants, when limited.

### `voice_participants: Option<Vec<VoiceParticipant>>`

`sync.snapshot` of a voice channel: who is in it now, without key packages.

### `participants: Vec<MemberId>`

A `dm` channel's two members, sorted by id bytes; absent otherwise.

## Trait implementations

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

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