pub struct SubscriptionsAcknowledgedNotification {
pub params: SubscriptionsAcknowledgedNotificationParams,
/* private fields */
}Expand description
Latest MCP Protocol 2026_07_28 Sent by the server to acknowledge that a {@link SubscriptionsListenRequestsubscriptions/listen} subscription has been established and to report which notification types it agreed to honor. This notification MUST be the first message the server sends carrying the subscription’s ID in io.modelcontextprotocol/subscriptionId. The server MUST NOT send any notification on the subscription before acknowledging it. On stdio, where every subscription shares one channel, this ordering is defined per subscription ID and not per channel: messages belonging to other subscriptions MAY be interleaved before it.
JSON schema
{
"description": "Sent by the server to acknowledge that a\n{@link SubscriptionsListenRequestsubscriptions/listen} subscription has been\nestablished and to report which notification types it agreed to honor.\n\nThis notification MUST be the first message the server sends carrying the\nsubscription's ID in io.modelcontextprotocol/subscriptionId. The server MUST\nNOT send any notification on the subscription before acknowledging it. On\nstdio, where every subscription shares one channel, this ordering is defined\nper subscription ID and not per channel: messages belonging to other\nsubscriptions MAY be interleaved before it.",
"type": "object",
"required": [
"jsonrpc",
"method",
"params"
],
"properties": {
"jsonrpc": {
"type": "string",
"const": "2.0"
},
"method": {
"type": "string",
"const": "notifications/subscriptions/acknowledged"
},
"params": {
"$ref": "#/$defs/SubscriptionsAcknowledgedNotificationParams"
}
}
}Fields§
§params: SubscriptionsAcknowledgedNotificationParamsImplementations§
Source§impl SubscriptionsAcknowledgedNotification
impl SubscriptionsAcknowledgedNotification
pub fn new(params: SubscriptionsAcknowledgedNotificationParams) -> Self
pub fn jsonrpc(&self) -> &String
pub fn method(&self) -> &String
Sourcepub fn method_value() -> &'static str
pub fn method_value() -> &'static str
returns “notifications/subscriptions/acknowledged”
pub fn method_name() -> &'static str
👎Deprecated since 0.8.0:
Use method_value() instead.
Trait Implementations§
Source§impl Clone for SubscriptionsAcknowledgedNotification
impl Clone for SubscriptionsAcknowledgedNotification
Source§fn clone(&self) -> SubscriptionsAcknowledgedNotification
fn clone(&self) -> SubscriptionsAcknowledgedNotification
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<'de> Deserialize<'de> for SubscriptionsAcknowledgedNotification
impl<'de> Deserialize<'de> for SubscriptionsAcknowledgedNotification
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 From<SubscriptionsAcknowledgedNotification> for ServerNotification
impl From<SubscriptionsAcknowledgedNotification> for ServerNotification
Source§fn from(value: SubscriptionsAcknowledgedNotification) -> Self
fn from(value: SubscriptionsAcknowledgedNotification) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SubscriptionsAcknowledgedNotification
impl RefUnwindSafe for SubscriptionsAcknowledgedNotification
impl Send for SubscriptionsAcknowledgedNotification
impl Sync for SubscriptionsAcknowledgedNotification
impl Unpin for SubscriptionsAcknowledgedNotification
impl UnsafeUnpin for SubscriptionsAcknowledgedNotification
impl UnwindSafe for SubscriptionsAcknowledgedNotification
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