pub struct Channel {Show 20 fields
pub channel_id: ChannelId,
pub kind: ChannelKind,
pub name: String,
pub topic: Option<String>,
pub parent_id: Option<ChannelId>,
pub position: u32,
pub slowmode_s: u32,
pub locked: bool,
pub typing: TypingMode,
pub retention: Retention,
pub sync_with_parent: bool,
pub history: HistoryAccess,
pub history_rev: u64,
pub distribution: DistributionMode,
pub overrides: Vec<Override>,
pub config: Map<String, Value>,
pub head_seq: Option<u64>,
pub user_limit: Option<u32>,
pub voice_participants: Option<Vec<VoiceParticipant>>,
pub participants: Vec<MemberId>,
}Expand description
A channel or category as members see it (§8.2).
Fields§
§channel_id: ChannelIdHost-assigned id.
kind: ChannelKindThe kind.
name: String1–100 scalars.
topic: Option<String>≤ 1 024 scalars.
parent_id: Option<ChannelId>The parent category; categories have none.
position: u32Position among siblings.
slowmode_s: u320–21 600 s (§8.7).
locked: boolThe locked flag (permissions §3.3, step 7d).
typing: TypingModeWho sees typing in the channel (§10.5); absent means named, and named is written
absent.
retention: RetentionRetention settings.
sync_with_parent: boolWhether the effective overrides are the parent’s (permissions §2.4).
history: HistoryAccessHistory access policy (ADR-0014).
history_rev: u64Incremented on each history change.
distribution: DistributionModeHost-chosen distribution mode; clients never send it.
overrides: Vec<Override>The channel’s own overrides.
config: Map<String, Value>SPEC: shown only as {} in §8.2 and never defined; kept as an opaque object.
head_seq: Option<u64>sync.snapshot only: the latest channel_seq (§10.1).
user_limit: Option<u32>Voice channels: the most participants, when limited (§8.12).
voice_participants: Option<Vec<VoiceParticipant>>sync.snapshot of a voice channel: who is in it now, without key packages (§8.12).
participants: Vec<MemberId>A dm channel’s two members, sorted by id bytes (§8.15); absent otherwise.