pub struct McpServer {Show 14 fields
pub name: String,
pub transport: String,
pub enabled: bool,
pub connected: bool,
pub pid: Option<u32>,
pub last_error: Option<String>,
pub last_auth_challenge: Option<McpAuthChallenge>,
pub mcp_session_id: Option<String>,
pub headers: HashMap<String, String>,
pub secret_headers: HashMap<String, McpSecretRef>,
pub tool_cache: Vec<McpToolCacheEntry>,
pub tools_fetched_at_ms: Option<u64>,
pub pending_auth_by_tool: HashMap<String, PendingMcpAuth>,
pub secret_header_values: HashMap<String, String>,
}Fields§
§name: String§transport: String§enabled: bool§connected: bool§pid: Option<u32>§last_error: Option<String>§last_auth_challenge: Option<McpAuthChallenge>§mcp_session_id: Option<String>§headers: HashMap<String, String>§secret_headers: HashMap<String, McpSecretRef>§tool_cache: Vec<McpToolCacheEntry>§tools_fetched_at_ms: Option<u64>§pending_auth_by_tool: HashMap<String, PendingMcpAuth>§secret_header_values: HashMap<String, String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for McpServer
impl<'de> Deserialize<'de> for McpServer
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 McpServer
impl RefUnwindSafe for McpServer
impl Send for McpServer
impl Sync for McpServer
impl Unpin for McpServer
impl UnsafeUnpin for McpServer
impl UnwindSafe for McpServer
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