struct PluginManifest {
skills: Option<Value>,
agents: Option<Value>,
commands: Option<Value>,
hooks: Option<Value>,
mcp_servers: Option<Value>,
}Expand description
The component-path fields of .claude-plugin/plugin.json. The
claude CLI resolves each as a string path or an array of paths,
hooks and MCP servers additionally as inline objects.
Declared paths join the plugin dir unvalidated: an absolute path
replaces it, .. walks out, symlinks are followed. Accepted under
the trust model (one trusted user driving their own machine); the
cost is that a bogus declaration counts a foreign directory’s
entries as the plugin’s own.
Fields§
§skills: Option<Value>§agents: Option<Value>§commands: Option<Value>§hooks: Option<Value>§mcp_servers: Option<Value>Trait Implementations§
Source§impl Default for PluginManifest
impl Default for PluginManifest
Source§impl<'de> Deserialize<'de> for PluginManifest
impl<'de> Deserialize<'de> for PluginManifest
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 PluginManifest
impl RefUnwindSafe for PluginManifest
impl Send for PluginManifest
impl Sync for PluginManifest
impl Unpin for PluginManifest
impl UnsafeUnpin for PluginManifest
impl UnwindSafe for PluginManifest
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