pub enum McpServersConfig {
File(String),
Inline(HashMap<String, McpServerEntry>),
}Expand description
MCP servers declared in plugin.json — either inline or a path to .mcp.json.
Variants§
File(String)
Path to a .mcp.json file relative to plugin root (starts with “./”).
Inline(HashMap<String, McpServerEntry>)
Inline server definitions.
Trait Implementations§
Source§impl Clone for McpServersConfig
impl Clone for McpServersConfig
Source§fn clone(&self) -> McpServersConfig
fn clone(&self) -> McpServersConfig
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 McpServersConfig
impl Debug for McpServersConfig
Source§impl<'de> Deserialize<'de> for McpServersConfig
impl<'de> Deserialize<'de> for McpServersConfig
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 McpServersConfig
impl RefUnwindSafe for McpServersConfig
impl Send for McpServersConfig
impl Sync for McpServersConfig
impl Unpin for McpServersConfig
impl UnsafeUnpin for McpServersConfig
impl UnwindSafe for McpServersConfig
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