pub struct Channel<'a> {
pub kind: ChannelKind,
pub overrides: &'a [Override],
pub parent_overrides: Option<&'a [Override]>,
pub sync_with_parent: bool,
pub locked: bool,
pub participants: Option<[MemberId; 2]>,
}Expand description
The channel context of a channel-level resolution.
Fields§
§kind: ChannelKindThe channel kind; it decides which bits apply (§1.3).
overrides: &'a [Override]The channel’s own stored overrides.
parent_overrides: Option<&'a [Override]>The parent category’s overrides, when the channel has a parent.
sync_with_parent: boolWhether the channel follows its parent’s overrides (§2.4).
locked: boolThe channel locked flag (§3.3, 7d).
participants: Option<[MemberId; 2]>A dm channel’s two members (§8.15): only they get anything in it, owner and
administrators included.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Channel<'a>
impl<'a> RefUnwindSafe for Channel<'a>
impl<'a> Send for Channel<'a>
impl<'a> Sync for Channel<'a>
impl<'a> Unpin for Channel<'a>
impl<'a> UnsafeUnpin for Channel<'a>
impl<'a> UnwindSafe for Channel<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more