pub struct McpRestartServerRequest {
pub config: Option<Value>,
pub server_name: String,
}Expand description
Server name and optional replacement configuration for an individual MCP server restart. Omit config for a config-free restart-by-name of an already-configured server.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§config: Option<Value>Replacement MCP server configuration (stdio process or remote HTTP/SSE). Omit to restart the server with its already-registered configuration (config-free restart-by-name).
server_name: StringName of the MCP server to restart
Trait Implementations§
Source§impl Clone for McpRestartServerRequest
impl Clone for McpRestartServerRequest
Source§fn clone(&self) -> McpRestartServerRequest
fn clone(&self) -> McpRestartServerRequest
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 McpRestartServerRequest
impl Debug for McpRestartServerRequest
Source§impl Default for McpRestartServerRequest
impl Default for McpRestartServerRequest
Source§fn default() -> McpRestartServerRequest
fn default() -> McpRestartServerRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpRestartServerRequest
impl<'de> Deserialize<'de> for McpRestartServerRequest
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 McpRestartServerRequest
impl RefUnwindSafe for McpRestartServerRequest
impl Send for McpRestartServerRequest
impl Sync for McpRestartServerRequest
impl Unpin for McpRestartServerRequest
impl UnsafeUnpin for McpRestartServerRequest
impl UnwindSafe for McpRestartServerRequest
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