pub struct SubscriptionsAcknowledgedNotificationParams {
pub notifications: SubscriptionFilter,
pub meta: Option<HashMap<String, Value>>,
}Expand description
Core MCP protocol types and error handling Params for the acknowledgement notification.
notifications is the subset of the client’s requested filter that the
server agreed to honor — types the server doesn’t support are omitted
(e.g. promptsListChanged if the server has no prompts).
Fields§
§notifications: SubscriptionFilter§meta: Option<HashMap<String, Value>>Implementations§
Source§impl SubscriptionsAcknowledgedNotificationParams
impl SubscriptionsAcknowledgedNotificationParams
pub fn new( notifications: SubscriptionFilter, ) -> SubscriptionsAcknowledgedNotificationParams
Trait Implementations§
Source§impl Clone for SubscriptionsAcknowledgedNotificationParams
impl Clone for SubscriptionsAcknowledgedNotificationParams
Source§fn clone(&self) -> SubscriptionsAcknowledgedNotificationParams
fn clone(&self) -> SubscriptionsAcknowledgedNotificationParams
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 SubscriptionsAcknowledgedNotificationParams
impl<'de> Deserialize<'de> for SubscriptionsAcknowledgedNotificationParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubscriptionsAcknowledgedNotificationParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubscriptionsAcknowledgedNotificationParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SubscriptionsAcknowledgedNotificationParams
impl Serialize for SubscriptionsAcknowledgedNotificationParams
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
Auto Trait Implementations§
impl Freeze for SubscriptionsAcknowledgedNotificationParams
impl RefUnwindSafe for SubscriptionsAcknowledgedNotificationParams
impl Send for SubscriptionsAcknowledgedNotificationParams
impl Sync for SubscriptionsAcknowledgedNotificationParams
impl Unpin for SubscriptionsAcknowledgedNotificationParams
impl UnsafeUnpin for SubscriptionsAcknowledgedNotificationParams
impl UnwindSafe for SubscriptionsAcknowledgedNotificationParams
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