Skip to main content

ChannelSource

Enum ChannelSource 

Source
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

Fields

§hub_name: String

Name of the hub

§channel_name: String

Name of the channel within the hub

§

Url

Direct URL

Fields

§url: String

The URL

§

Anonymous

Anonymous (imported directly without registration)

Fields

§url: String

The original URL

§imported_at: String

When it was imported

§

Marketplace

Claude Code Plugin Marketplace

Fields

§repo: String

GitHub repo (e.g., “anthropics/claude-plugins-official”)

§

CodexCatalog

OpenAI Codex Skills Catalog (GitHub directory scan)

Fields

§repo: String

GitHub repo (e.g., “openai/skills”)

§base_path: String

Base path within the repo (e.g., “skills”)

Implementations§

Source§

impl ChannelSource

Source

pub fn github_global() -> Self

Create a GitHub global source

Source

pub fn from_hub( hub_name: impl Into<String>, channel_name: impl Into<String>, ) -> Self

Create a Hub source

Source

pub fn from_url(url: impl Into<String>) -> Self

Create a URL source

Source

pub fn anonymous(url: impl Into<String>) -> Self

Create an anonymous source

Source

pub fn marketplace(repo: impl Into<String>) -> Self

Create a Marketplace source

Source

pub fn codex_catalog( repo: impl Into<String>, base_path: impl Into<String>, ) -> Self

Create a Codex Catalog source

Source

pub fn url(&self) -> Option<&str>

Get the URL if available

Source

pub fn repo(&self) -> Option<&str>

Get the GitHub repo if marketplace or codex catalog

Source

pub fn codex_base_path(&self) -> Option<&str>

Get the base path for codex catalog

Trait Implementations§

Source§

impl Clone for ChannelSource

Source§

fn clone(&self) -> ChannelSource

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ChannelSource

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ChannelSource

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ChannelSource

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.