#[non_exhaustive]pub struct MessageMcpNotification {
pub server_id: McpServerAcpId,
pub request_id: McpRequestId,
pub method: String,
pub params: Option<Map<String, Value>>,
pub meta: Option<Meta>,
}unstable_mcp_over_acp and unstable_protocol_v2 only.Expand description
UNSTABLE
Notification for an active request, sent from provider to consumer. Includes subscription acknowledgements and updates.
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.server_id: McpServerAcpIdThe declared ACP MCP server handling the associated request.
request_id: McpRequestIdThe identifier of the active inner MCP request.
method: StringThe inner MCP method name.
params: Option<Map<String, Value>>Optional inner MCP params; null is equivalent to omission.
meta: Option<Meta>The _meta property is reserved by ACP to allow clients and agents to attach additional
metadata to their interactions. Omitted and null are equivalent and mean no metadata.
Implementations MUST NOT make assumptions about values at these keys.
This is ACP metadata, not the inner MCP message’s _meta.
See protocol docs: Extensibility
Implementations§
Source§impl MessageMcpNotification
impl MessageMcpNotification
Sourcepub fn new(
server_id: impl Into<McpServerAcpId>,
request_id: impl Into<McpRequestId>,
method: impl Into<String>,
) -> Self
pub fn new( server_id: impl Into<McpServerAcpId>, request_id: impl Into<McpRequestId>, method: impl Into<String>, ) -> Self
Builds MessageMcpNotification with required fields set.
Sourcepub fn params(self, params: impl IntoOption<Map<String, Value>>) -> Self
pub fn params(self, params: impl IntoOption<Map<String, Value>>) -> Self
Sets optional inner MCP params.
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
Sets optional ACP extension metadata.
Trait Implementations§
Source§impl Clone for MessageMcpNotification
impl Clone for MessageMcpNotification
Source§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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for MessageMcpNotification
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§impl Serialize for MessageMcpNotification
impl Serialize for MessageMcpNotification
impl StructuralPartialEq for MessageMcpNotification
Auto Trait Implementations§
impl Freeze for MessageMcpNotification
impl RefUnwindSafe for MessageMcpNotification
impl Send for MessageMcpNotification
impl Sync for MessageMcpNotification
impl Unpin for MessageMcpNotification
impl UnsafeUnpin for MessageMcpNotification
impl UnwindSafe for MessageMcpNotification
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.