pub struct McpServerEntry {
pub command: Option<String>,
pub args: Vec<String>,
pub url: Option<String>,
pub env: HashMap<String, String>,
}Expand description
Entry for a configured MCP server.
Fields§
§command: Option<String>Command to run (for stdio transport).
args: Vec<String>Arguments for the command.
url: Option<String>URL (for SSE transport).
env: HashMap<String, String>Environment variables for the server process.
Trait Implementations§
Source§impl Clone for McpServerEntry
impl Clone for McpServerEntry
Source§fn clone(&self) -> McpServerEntry
fn clone(&self) -> McpServerEntry
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 McpServerEntry
impl Debug for McpServerEntry
Source§impl<'de> Deserialize<'de> for McpServerEntry
impl<'de> Deserialize<'de> for McpServerEntry
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 McpServerEntry
impl RefUnwindSafe for McpServerEntry
impl Send for McpServerEntry
impl Sync for McpServerEntry
impl Unpin for McpServerEntry
impl UnsafeUnpin for McpServerEntry
impl UnwindSafe for McpServerEntry
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