pub struct MarketplacePlugin {
pub name: String,
pub description: Option<String>,
pub version: Option<String>,
pub source: Value,
pub category: Option<String>,
pub keywords: Option<Vec<String>>,
pub author: Option<Value>,
pub lsp_servers: Option<Value>,
pub mcp_servers: Option<Value>,
pub hooks: Option<Value>,
pub commands: Option<Value>,
pub agents: Option<Value>,
}Expand description
A plugin entry from a Claude Code Plugin Marketplace
Fields§
§name: StringPlugin name (kebab-case identifier)
description: Option<String>Plugin description
version: Option<String>Plugin version
source: ValuePlugin source (relative path or git source object)
category: Option<String>Plugin category
keywords: Option<Vec<String>>Plugin keywords/tags
Plugin author
lsp_servers: Option<Value>LSP servers configuration (inline definition)
mcp_servers: Option<Value>MCP servers configuration (inline definition)
hooks: Option<Value>Hooks configuration (inline definition)
commands: Option<Value>Commands configuration (inline definition)
agents: Option<Value>Agents configuration (inline definition)
Implementations§
Source§impl MarketplacePlugin
impl MarketplacePlugin
Sourcepub fn source_path(&self) -> Option<&str>
pub fn source_path(&self) -> Option<&str>
Get the source as a relative path (if it’s a string)
Sourcepub fn source_github_repo(&self) -> Option<&str>
pub fn source_github_repo(&self) -> Option<&str>
Get the source as a git repo (if it’s an object with “source”: “github”)
Sourcepub fn source_url(&self) -> Option<&str>
pub fn source_url(&self) -> Option<&str>
Get the source as a URL (if it’s an object with “source”: “url”)
Sourcepub fn has_inline_config(&self) -> bool
pub fn has_inline_config(&self) -> bool
Check if plugin has inline configurations (strict: false pattern)
Trait Implementations§
Source§impl Clone for MarketplacePlugin
impl Clone for MarketplacePlugin
Source§fn clone(&self) -> MarketplacePlugin
fn clone(&self) -> MarketplacePlugin
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 MarketplacePlugin
impl Debug for MarketplacePlugin
Source§impl<'de> Deserialize<'de> for MarketplacePlugin
impl<'de> Deserialize<'de> for MarketplacePlugin
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 MarketplacePlugin
impl RefUnwindSafe for MarketplacePlugin
impl Send for MarketplacePlugin
impl Sync for MarketplacePlugin
impl Unpin for MarketplacePlugin
impl UnwindSafe for MarketplacePlugin
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