pub struct PluginMcpServer {
pub id: String,
pub command: Option<String>,
pub args: Vec<String>,
}Expand description
A single MCP server declaration in [[mcp.servers]].
Fields§
§id: StringUnique server ID. Used to de-duplicate across plugins.
command: Option<String>Command to spawn (stdio transport). Must be in mcp.allowed_commands.
args: Vec<String>Arguments passed to command.
Trait Implementations§
Source§impl Clone for PluginMcpServer
impl Clone for PluginMcpServer
Source§fn clone(&self) -> PluginMcpServer
fn clone(&self) -> PluginMcpServer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PluginMcpServer
impl Debug for PluginMcpServer
Source§impl<'de> Deserialize<'de> for PluginMcpServer
impl<'de> Deserialize<'de> for PluginMcpServer
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 PluginMcpServer
impl RefUnwindSafe for PluginMcpServer
impl Send for PluginMcpServer
impl Sync for PluginMcpServer
impl Unpin for PluginMcpServer
impl UnsafeUnpin for PluginMcpServer
impl UnwindSafe for PluginMcpServer
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