Struct command::object::Channel
zaun_community_protocol::command::object::Channel · Struct
pub struct Channel { … }A channel or category as members see it.
Fields
Section titled “Fields”channel_id: ChannelId
Section titled “channel_id: ChannelId”Host-assigned id.
kind: ChannelKind
Section titled “kind: ChannelKind”The kind.
name: String
Section titled “name: String”1–100 scalars.
topic: Option<String>
Section titled “topic: Option<String>”≤ 1 024 scalars.
parent_id: Option<ChannelId>
Section titled “parent_id: Option<ChannelId>”The parent category; categories have none.
position: u32
Section titled “position: u32”Position among siblings.
slowmode_s: u32
Section titled “slowmode_s: u32”0–21 600 s.
locked: bool
Section titled “locked: bool”The locked flag (permissions the protocol, step 7d).
typing: TypingMode
Section titled “typing: TypingMode”Who sees typing in the channel; absent means named, and named is written
absent.
retention: Retention
Section titled “retention: Retention”Retention settings.
sync_with_parent: bool
Section titled “sync_with_parent: bool”Whether the effective overrides are the parent’s (permissions the protocol).
history: HistoryAccess
Section titled “history: HistoryAccess”History access policy (ADR-0014).
history_rev: u64
Section titled “history_rev: u64”Incremented on each history change.
distribution: DistributionMode
Section titled “distribution: DistributionMode”Host-chosen distribution mode; clients never send it.
overrides: Vec<Override>
Section titled “overrides: Vec<Override>”The channel’s own overrides.
config: Map<String, Value>
Section titled “config: Map<String, Value>”SPEC: shown only as {} in the protocol and never defined; kept as an opaque object.
head_seq: Option<u64>
Section titled “head_seq: Option<u64>”sync.snapshot only: the latest channel_seq.
user_limit: Option<u32>
Section titled “user_limit: Option<u32>”Voice channels: the most participants, when limited.
voice_participants: Option<Vec<VoiceParticipant>>
Section titled “voice_participants: Option<Vec<VoiceParticipant>>”sync.snapshot of a voice channel: who is in it now, without key packages.
participants: Vec<MemberId>
Section titled “participants: Vec<MemberId>”A dm channel’s two members, sorted by id bytes; absent otherwise.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Deserialize<'de>, PartialEq, Serialize, StructuralPartialEq