pub enum SubagentMcpServerRef {
Named(String),
Inline {
name: String,
config: Value,
},
}Expand description
One entry in SubagentDefinition::mcp_servers. Either the name of an MCP
server configured at the top level, or an inline {name: config} object.
Matches the CLI’s list[str | dict[str, Any]] type.
Variants§
Named(String)
Named reference to a top-level MCP server.
Inline
Inline declaration. On the wire, emitted as {<name>: <config>}.
Trait Implementations§
Source§impl Clone for SubagentMcpServerRef
impl Clone for SubagentMcpServerRef
Source§impl Debug for SubagentMcpServerRef
impl Debug for SubagentMcpServerRef
Source§impl<'de> Deserialize<'de> for SubagentMcpServerRef
impl<'de> Deserialize<'de> for SubagentMcpServerRef
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
Source§impl PartialEq for SubagentMcpServerRef
impl PartialEq for SubagentMcpServerRef
Source§impl Serialize for SubagentMcpServerRef
impl Serialize for SubagentMcpServerRef
impl StructuralPartialEq for SubagentMcpServerRef
Auto Trait Implementations§
impl Freeze for SubagentMcpServerRef
impl RefUnwindSafe for SubagentMcpServerRef
impl Send for SubagentMcpServerRef
impl Sync for SubagentMcpServerRef
impl Unpin for SubagentMcpServerRef
impl UnsafeUnpin for SubagentMcpServerRef
impl UnwindSafe for SubagentMcpServerRef
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