pub struct NotificationMetaObject {
pub io_modelcontextprotocol_subscription_id: Option<RequestId>,
pub extra: Option<Map<String, Value>>,
}Expand description
Latest MCP Protocol 2026_07_28 Extends {@link MetaObject} with additional notification-specific fields. All key naming rules from MetaObject apply.
JSON schema
{
"description": "Extends {@link MetaObject} with additional notification-specific fields. All key naming rules from MetaObject apply.",
"type": "object",
"properties": {
"io.modelcontextprotocol/subscriptionId": {
"description": "Identifies the subscription stream a notification was delivered on. The\nserver MUST include this key on every notification delivered via a\n{@link SubscriptionsListenRequestsubscriptions/listen} stream, so the\nclient can correlate the notification with the originating subscription.\nThe key is absent on notifications not delivered via a subscription\nstream (e.g. progress notifications for an in-flight request), which is\nwhy it is optional here.\n\nThe value is the JSON-RPC ID of the subscriptions/listen request that\nopened the stream.",
"$ref": "#/$defs/RequestId"
}
},
"additionalProperties": {}
}Fields§
§io_modelcontextprotocol_subscription_id: Option<RequestId>Identifies the subscription stream a notification was delivered on. The server MUST include this key on every notification delivered via a {@link SubscriptionsListenRequestsubscriptions/listen} stream, so the client can correlate the notification with the originating subscription. The key is absent on notifications not delivered via a subscription stream (e.g. progress notifications for an in-flight request), which is why it is optional here. The value is the JSON-RPC ID of the subscriptions/listen request that opened the stream.
extra: Option<Map<String, Value>>Trait Implementations§
Source§impl Clone for NotificationMetaObject
impl Clone for NotificationMetaObject
Source§fn clone(&self) -> NotificationMetaObject
fn clone(&self) -> NotificationMetaObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NotificationMetaObject
impl Debug for NotificationMetaObject
Source§impl Default for NotificationMetaObject
impl Default for NotificationMetaObject
Source§fn default() -> NotificationMetaObject
fn default() -> NotificationMetaObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationMetaObject
impl<'de> Deserialize<'de> for NotificationMetaObject
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
Auto Trait Implementations§
impl Freeze for NotificationMetaObject
impl RefUnwindSafe for NotificationMetaObject
impl Send for NotificationMetaObject
impl Sync for NotificationMetaObject
impl Unpin for NotificationMetaObject
impl UnsafeUnpin for NotificationMetaObject
impl UnwindSafe for NotificationMetaObject
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