#[non_exhaustive]pub struct MessageMcpNotification {
pub connection_id: McpConnectionId,
pub method: String,
pub params: Option<Map<String, Value>>,
pub meta: Option<Map<String, Value>>,
}Expand description
UNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
Notification parameters for mcp/message.
This is used when the wrapped MCP message is a notification and the outer JSON-RPC
envelope has no id.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.connection_id: McpConnectionIdThe MCP-over-ACP connection this message is sent on.
method: StringThe inner MCP method name.
params: Option<Map<String, Value>>Optional inner MCP params.
If omitted or set to null, the inner MCP message has no params.
meta: Option<Map<String, Value>>The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl MessageMcpNotification
impl MessageMcpNotification
pub fn new( connection_id: impl Into<McpConnectionId>, method: impl Into<String>, ) -> MessageMcpNotification
Sourcepub fn params(
self,
params: impl IntoOption<Map<String, Value>>,
) -> MessageMcpNotification
pub fn params( self, params: impl IntoOption<Map<String, Value>>, ) -> MessageMcpNotification
Optional inner MCP params.
If omitted or set to null, the inner MCP message has no params.
Sourcepub fn meta(
self,
meta: impl IntoOption<Map<String, Value>>,
) -> MessageMcpNotification
pub fn meta( self, meta: impl IntoOption<Map<String, Value>>, ) -> MessageMcpNotification
The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for MessageMcpNotification
impl Clone for MessageMcpNotification
Source§fn clone(&self) -> MessageMcpNotification
fn clone(&self) -> MessageMcpNotification
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MessageMcpNotification
impl Debug for MessageMcpNotification
Source§impl<'de> Deserialize<'de> for MessageMcpNotification
impl<'de> Deserialize<'de> for MessageMcpNotification
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessageMcpNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessageMcpNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl IntoV2 for MessageMcpNotification
Available on crate feature unstable_mcp_over_acp only.
impl IntoV2 for MessageMcpNotification
unstable_mcp_over_acp only.Source§type Output = MessageMcpNotification
type Output = MessageMcpNotification
Source§fn into_v2(
self,
) -> Result<<MessageMcpNotification as IntoV2>::Output, ProtocolConversionError>
fn into_v2( self, ) -> Result<<MessageMcpNotification as IntoV2>::Output, ProtocolConversionError>
Source§impl JsonSchema for MessageMcpNotification
impl JsonSchema for MessageMcpNotification
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for MessageMcpNotification
impl PartialEq for MessageMcpNotification
Source§fn eq(&self, other: &MessageMcpNotification) -> bool
fn eq(&self, other: &MessageMcpNotification) -> bool
self and other values to be equal, and is used by ==.