pub struct SubscriptionsAcknowledgedNotificationParams {
pub meta: Option<NotificationMetaObject>,
pub notifications: SubscriptionFilter,
}Expand description
Parameters for a SubscriptionsAcknowledgedNotificationnotifications/subscriptions/acknowledged notification.
Fields§
§meta: Option<NotificationMetaObject>§notifications: SubscriptionFilterThe subset of requested notification types the server agreed to honor.
Only includes notification types the server actually supports; if the
client requested an unsupported type (e.g., promptsListChanged when
the server has no prompts), it is omitted from this set.
Implementations§
Source§impl SubscriptionsAcknowledgedNotificationParams
impl SubscriptionsAcknowledgedNotificationParams
Sourcepub fn new(
notifications: SubscriptionFilter,
) -> SubscriptionsAcknowledgedNotificationParams
pub fn new( notifications: SubscriptionFilter, ) -> SubscriptionsAcknowledgedNotificationParams
Creates a value from its required fields; optional fields are None.
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
impl StructuralPartialEq for SubscriptionsAcknowledgedNotificationParams
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