pub struct McpRestartServerOptions { /* private fields */ }Expand description
Extensible McpRestartServerRequest, including inputs added after it was published.
Required inputs are McpRestartServerOptions::new arguments; optional inputs have fluent setters.
Input-only: it serialises to the flat wire request and is not deserialisable.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Implementations§
Source§impl McpRestartServerOptions
impl McpRestartServerOptions
Sourcepub fn config(self, value: Value) -> Self
pub fn config(self, value: Value) -> Self
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).
Sourcepub fn expected_installation_id(self, value: impl Into<String>) -> Self
pub fn expected_installation_id(self, value: impl Into<String>) -> Self
Exact receipt identity for an explicit owned restart; configuration overrides are refused.
Trait Implementations§
Source§impl Clone for McpRestartServerOptions
impl Clone for McpRestartServerOptions
Source§impl Debug for McpRestartServerOptions
impl Debug for McpRestartServerOptions
Auto Trait Implementations§
impl Freeze for McpRestartServerOptions
impl RefUnwindSafe for McpRestartServerOptions
impl Send for McpRestartServerOptions
impl Sync for McpRestartServerOptions
impl Unpin for McpRestartServerOptions
impl UnsafeUnpin for McpRestartServerOptions
impl UnwindSafe for McpRestartServerOptions
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