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§fn clone(&self) -> SubagentMcpServerRef
fn clone(&self) -> SubagentMcpServerRef
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 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<SubagentMcpServerRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubagentMcpServerRef, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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