pub struct SubscriptionsAcknowledgedNotification {
pub jsonrpc: JsonRpcVersion,
pub method: NotificationsSubscriptionsAcknowledgedMethod,
pub params: SubscriptionsAcknowledgedNotificationParams,
}Expand description
Sent by the server to acknowledge that a
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.
Fields§
§jsonrpc: JsonRpcVersion§method: NotificationsSubscriptionsAcknowledgedMethod§params: SubscriptionsAcknowledgedNotificationParamsImplementations§
Source§impl SubscriptionsAcknowledgedNotification
impl SubscriptionsAcknowledgedNotification
Sourcepub fn new(
params: SubscriptionsAcknowledgedNotificationParams,
) -> SubscriptionsAcknowledgedNotification
pub fn new( params: SubscriptionsAcknowledgedNotificationParams, ) -> SubscriptionsAcknowledgedNotification
Creates a value from its required fields; optional fields are None.
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<SubscriptionsAcknowledgedNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubscriptionsAcknowledgedNotification, <__D as Deserializer<'de>>::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(v: SubscriptionsAcknowledgedNotification) -> ServerNotification
fn from(v: SubscriptionsAcknowledgedNotification) -> ServerNotification
Converts to this type from the input type.
Source§impl Serialize for SubscriptionsAcknowledgedNotification
impl Serialize for SubscriptionsAcknowledgedNotification
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SubscriptionsAcknowledgedNotification
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