pub struct ChannelConfig {
pub provider: String,
pub tenant: String,
pub channel: String,
pub follows: Follows,
pub notify: NotifyPreset,
pub ceiling: FleetRole,
}Expand description
Per-chat-channel configuration, keyed by provider, tenant and channel (ariel ADR 0009; gonzalo ADR 0023). It belongs to no person: who changed it is recorded in the audit trail and in gonzalo’s author stamp.
Fields§
§provider: StringThe chat provider, such as "discord".
tenant: StringThe guild, workspace or team id the channel belongs to. Part of the key, because a channel id is only unique within its tenant on some platforms.
channel: StringThe platform’s channel id.
follows: FollowsStored as a one-element array; merges atomically (ADR 0022), so two concurrent follow changes conflict instead of one silently winning.
notify: NotifyPresetDefaults to NotifyPreset::All.
ceiling: FleetRoleThe highest role any command in this channel runs with. Defaults to
FleetRole::Viewer; it governs commands only, never notifications.
Implementations§
Trait Implementations§
Source§impl Clone for ChannelConfig
impl Clone for ChannelConfig
Source§fn clone(&self) -> ChannelConfig
fn clone(&self) -> ChannelConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelConfig
impl Debug for ChannelConfig
Source§impl<'de> Deserialize<'de> for ChannelConfig
impl<'de> Deserialize<'de> for ChannelConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ChannelConfig
Source§impl PartialEq for ChannelConfig
impl PartialEq for ChannelConfig
Source§impl RecordCodec for ChannelConfig
impl RecordCodec for ChannelConfig
Source§impl Serialize for ChannelConfig
impl Serialize for ChannelConfig
impl StructuralPartialEq for ChannelConfig
Auto Trait Implementations§
impl Freeze for ChannelConfig
impl RefUnwindSafe for ChannelConfig
impl Send for ChannelConfig
impl Sync for ChannelConfig
impl Unpin for ChannelConfig
impl UnsafeUnpin for ChannelConfig
impl UnwindSafe for ChannelConfig
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