pub struct DiscoveredMcpServer {
pub enabled: bool,
pub name: String,
pub source: McpServerSource,
pub source_plugin: Option<String>,
pub source_plugin_version: Option<String>,
pub type: Option<DiscoveredMcpServerType>,
}Expand description
Schema for the DiscoveredMcpServer type.
Fields§
§enabled: boolWhether the server is enabled (not in the disabled list)
name: StringServer name (config key)
source: McpServerSourceConfiguration source: user, workspace, plugin, or builtin
source_plugin: Option<String>Plugin name that provided this server, when source is plugin.
source_plugin_version: Option<String>Plugin version that provided this server, when source is plugin.
type: Option<DiscoveredMcpServerType>Server transport type: stdio, http, sse (deprecated), or memory
Trait Implementations§
Source§impl Clone for DiscoveredMcpServer
impl Clone for DiscoveredMcpServer
Source§fn clone(&self) -> DiscoveredMcpServer
fn clone(&self) -> DiscoveredMcpServer
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 DiscoveredMcpServer
impl Debug for DiscoveredMcpServer
Source§impl Default for DiscoveredMcpServer
impl Default for DiscoveredMcpServer
Source§fn default() -> DiscoveredMcpServer
fn default() -> DiscoveredMcpServer
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiscoveredMcpServer
impl<'de> Deserialize<'de> for DiscoveredMcpServer
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 DiscoveredMcpServer
impl RefUnwindSafe for DiscoveredMcpServer
impl Send for DiscoveredMcpServer
impl Sync for DiscoveredMcpServer
impl Unpin for DiscoveredMcpServer
impl UnsafeUnpin for DiscoveredMcpServer
impl UnwindSafe for DiscoveredMcpServer
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