pub struct McpOverAcpNotification<R> {
pub connection_id: String,
pub notification: R,
pub meta: Option<Value>,
}Expand description
An MCP notification sent via ACP, either from the MCP client (the ACP agent) or the MCP server (the ACP client).
Delivered via _mcp/notification when the MCP client (the ACP agent)
sends a notification to the MCP server (the ACP client).
Fields§
§connection_id: Stringid given in response to _mcp/connect request.
notification: RNotification to be sent to the MCP server or client.
meta: Option<Value>Optional metadata
Trait Implementations§
Source§impl<R: Clone> Clone for McpOverAcpNotification<R>
impl<R: Clone> Clone for McpOverAcpNotification<R>
Source§fn clone(&self) -> McpOverAcpNotification<R>
fn clone(&self) -> McpOverAcpNotification<R>
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<R: Debug> Debug for McpOverAcpNotification<R>
impl<R: Debug> Debug for McpOverAcpNotification<R>
Source§impl<'de, R> Deserialize<'de> for McpOverAcpNotification<R>where
R: Deserialize<'de>,
impl<'de, R> Deserialize<'de> for McpOverAcpNotification<R>where
R: Deserialize<'de>,
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<R: JrMessage> JrMessage for McpOverAcpNotification<R>
impl<R: JrMessage> JrMessage for McpOverAcpNotification<R>
Source§fn to_untyped_message(&self) -> Result<UntypedMessage, Error>
fn to_untyped_message(&self) -> Result<UntypedMessage, Error>
The parameters for the request.
Source§impl<R> Serialize for McpOverAcpNotification<R>where
R: Serialize,
impl<R> Serialize for McpOverAcpNotification<R>where
R: Serialize,
impl<R: JrMessage> JrNotification for McpOverAcpNotification<R>
Auto Trait Implementations§
impl<R> Freeze for McpOverAcpNotification<R>where
R: Freeze,
impl<R> RefUnwindSafe for McpOverAcpNotification<R>where
R: RefUnwindSafe,
impl<R> Send for McpOverAcpNotification<R>where
R: Send,
impl<R> Sync for McpOverAcpNotification<R>where
R: Sync,
impl<R> Unpin for McpOverAcpNotification<R>where
R: Unpin,
impl<R> UnwindSafe for McpOverAcpNotification<R>where
R: UnwindSafe,
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