Struct permissions::Channel
zaun_community_protocol::permissions::Channel · Struct
pub struct Channel<'a> { … }The channel context of a channel-level resolution.
Fields
Section titled “Fields”kind: ChannelKind
Section titled “kind: ChannelKind”The channel kind; it decides which bits apply.
overrides: &'a [Override]
Section titled “overrides: &'a [Override]”The channel’s own stored overrides.
parent_overrides: Option<&'a [Override]>
Section titled “parent_overrides: Option<&'a [Override]>”The parent category’s overrides, when the channel has a parent.
sync_with_parent: bool
Section titled “sync_with_parent: bool”Whether the channel follows its parent’s overrides.
locked: bool
Section titled “locked: bool”The channel locked flag.
participants: Option<[MemberId; 2]>
Section titled “participants: Option<[MemberId; 2]>”A dm channel’s two members: only they get anything in it, owner and
administrators included.
Methods
Section titled “Methods”effective_overrides
Section titled “effective_overrides”pub fn effective_overrides(&self) -> &'a [Override]The overrides that apply: the parent’s while synced, else the channel’s own. A category never syncs.
Trait implementations
Section titled “Trait implementations”Clone, Copy, Debug