pub enum ChannelSource {
GitHubGlobal,
Hub {
hub_name: String,
channel_name: String,
},
Url {
url: String,
},
Anonymous {
url: String,
imported_at: String,
},
Marketplace {
repo: String,
},
CodexCatalog {
repo: String,
base_path: String,
},
}Expand description
Source of a channel
Variants§
GitHubGlobal
GitHub global (no specific source, searches all GitHub)
Hub
From a Hub
Url
Direct URL
Anonymous
Anonymous (imported directly without registration)
Marketplace
Claude Code Plugin Marketplace
CodexCatalog
OpenAI Codex Skills Catalog (GitHub directory scan)
Implementations§
Source§impl ChannelSource
impl ChannelSource
Sourcepub fn github_global() -> Self
pub fn github_global() -> Self
Create a GitHub global source
Sourcepub fn from_hub(
hub_name: impl Into<String>,
channel_name: impl Into<String>,
) -> Self
pub fn from_hub( hub_name: impl Into<String>, channel_name: impl Into<String>, ) -> Self
Create a Hub source
Sourcepub fn marketplace(repo: impl Into<String>) -> Self
pub fn marketplace(repo: impl Into<String>) -> Self
Create a Marketplace source
Sourcepub fn codex_catalog(
repo: impl Into<String>,
base_path: impl Into<String>,
) -> Self
pub fn codex_catalog( repo: impl Into<String>, base_path: impl Into<String>, ) -> Self
Create a Codex Catalog source
Sourcepub fn codex_base_path(&self) -> Option<&str>
pub fn codex_base_path(&self) -> Option<&str>
Get the base path for codex catalog
Trait Implementations§
Source§impl Clone for ChannelSource
impl Clone for ChannelSource
Source§fn clone(&self) -> ChannelSource
fn clone(&self) -> ChannelSource
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 ChannelSource
impl Debug for ChannelSource
Source§impl<'de> Deserialize<'de> for ChannelSource
impl<'de> Deserialize<'de> for ChannelSource
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 ChannelSource
impl RefUnwindSafe for ChannelSource
impl Send for ChannelSource
impl Sync for ChannelSource
impl Unpin for ChannelSource
impl UnwindSafe for ChannelSource
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