pub struct ChannelRegistry {
pub channels: Vec<Channel>,
}Expand description
Channel registry configuration
Fields§
§channels: Vec<Channel>Registered channels
Implementations§
Source§impl ChannelRegistry
impl ChannelRegistry
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create registry with default channels (github-global, codex-skills)
Sourcepub fn remove(&mut self, name: &str) -> Result<Channel>
pub fn remove(&mut self, name: &str) -> Result<Channel>
Remove a channel by name (cannot remove builtin channels)
Sourcepub fn get_mut(&mut self, name: &str) -> Option<&mut Channel>
pub fn get_mut(&mut self, name: &str) -> Option<&mut Channel>
Get a mutable reference to a channel by name
Sourcepub fn list_enabled(&self) -> Vec<&Channel>
pub fn list_enabled(&self) -> Vec<&Channel>
List enabled channels
Sourcepub fn list_searchable(&self) -> Vec<&Channel>
pub fn list_searchable(&self) -> Vec<&Channel>
List searchable channels (enabled and supports search)
Sourcepub fn list_by_type(&self, channel_type: ChannelType) -> Vec<&Channel>
pub fn list_by_type(&self, channel_type: ChannelType) -> Vec<&Channel>
List channels by type
Trait Implementations§
Source§impl Clone for ChannelRegistry
impl Clone for ChannelRegistry
Source§fn clone(&self) -> ChannelRegistry
fn clone(&self) -> ChannelRegistry
Returns a duplicate of the value. Read more
1.0.0 · 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 ChannelRegistry
impl Debug for ChannelRegistry
Source§impl Default for ChannelRegistry
impl Default for ChannelRegistry
Source§impl<'de> Deserialize<'de> for ChannelRegistry
impl<'de> Deserialize<'de> for ChannelRegistry
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
Auto Trait Implementations§
impl Freeze for ChannelRegistry
impl RefUnwindSafe for ChannelRegistry
impl Send for ChannelRegistry
impl Sync for ChannelRegistry
impl Unpin for ChannelRegistry
impl UnwindSafe for ChannelRegistry
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