pub struct Channel {
pub name: String,
pub channel_type: ChannelType,
pub source: ChannelSource,
pub description: Option<String>,
pub added_at: String,
pub enabled: bool,
pub builtin: bool,
}Expand description
A Channel is a source of profiles with search capability
Fields§
§name: StringUnique name for this channel
channel_type: ChannelTypeType of channel
source: ChannelSourceSource of the channel
description: Option<String>Optional description
added_at: StringWhen this channel was added
enabled: boolWhether this channel is enabled
builtin: boolWhether this is a built-in channel (cannot be removed)
Implementations§
Source§impl Channel
impl Channel
Sourcepub fn github_global() -> Self
pub fn github_global() -> Self
Create the default GitHub global channel
Sourcepub fn from_hub(
name: impl Into<String>,
hub_name: impl Into<String>,
channel_name: impl Into<String>,
) -> Self
pub fn from_hub( name: impl Into<String>, hub_name: impl Into<String>, channel_name: impl Into<String>, ) -> Self
Create a new Channel from a Hub
Sourcepub fn from_url(name: impl Into<String>, url: impl Into<String>) -> Self
pub fn from_url(name: impl Into<String>, url: impl Into<String>) -> Self
Create a new Channel from a direct URL
Sourcepub fn awesome_list(name: impl Into<String>, url: impl Into<String>) -> Self
pub fn awesome_list(name: impl Into<String>, url: impl Into<String>) -> Self
Create an Awesome List channel
Sourcepub fn claude_plugin_github(
name: impl Into<String>,
repo: impl Into<String>,
) -> Self
pub fn claude_plugin_github( name: impl Into<String>, repo: impl Into<String>, ) -> Self
Create a Claude Code Plugin Marketplace channel
Sourcepub fn codex_skills() -> Self
pub fn codex_skills() -> Self
Create the builtin Codex Skills Catalog channel (openai/skills)
Sourcepub fn with_description(self, desc: impl Into<String>) -> Self
pub fn with_description(self, desc: impl Into<String>) -> Self
Set description
Sourcepub fn is_searchable(&self) -> bool
pub fn is_searchable(&self) -> bool
Whether this channel supports search
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Channel
impl<'de> Deserialize<'de> for Channel
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 Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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