pub struct McpDisconnectNotification {
pub connection_id: String,
pub meta: Option<Value>,
}Expand description
Disconnects the MCP connection.
Fields§
§connection_id: StringThe id of the connection to disconnect.
meta: Option<Value>Optional metadata
Trait Implementations§
Source§impl Clone for McpDisconnectNotification
impl Clone for McpDisconnectNotification
Source§fn clone(&self) -> McpDisconnectNotification
fn clone(&self) -> McpDisconnectNotification
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 McpDisconnectNotification
impl Debug for McpDisconnectNotification
Source§impl<'de> Deserialize<'de> for McpDisconnectNotification
impl<'de> Deserialize<'de> for McpDisconnectNotification
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
Source§impl Hash for McpDisconnectNotification
impl Hash for McpDisconnectNotification
Source§impl JsonRpcMessage for McpDisconnectNotification
impl JsonRpcMessage for McpDisconnectNotification
Source§fn matches_method(method: &str) -> bool
fn matches_method(method: &str) -> bool
Check if this message type matches the given method name.
Source§fn to_untyped_message(&self) -> Result<UntypedMessage, Error>
fn to_untyped_message(&self) -> Result<UntypedMessage, Error>
Convert this message into an untyped message.
impl Eq for McpDisconnectNotification
impl JsonRpcNotification for McpDisconnectNotification
impl StructuralPartialEq for McpDisconnectNotification
Auto Trait Implementations§
impl Freeze for McpDisconnectNotification
impl RefUnwindSafe for McpDisconnectNotification
impl Send for McpDisconnectNotification
impl Sync for McpDisconnectNotification
impl Unpin for McpDisconnectNotification
impl UnsafeUnpin for McpDisconnectNotification
impl UnwindSafe for McpDisconnectNotification
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