pub struct SubscriptionFilter {
pub prompts_list_changed: Option<bool>,
pub resource_subscriptions: Vec<String>,
pub resources_list_changed: Option<bool>,
pub tools_list_changed: Option<bool>,
}Expand description
Latest MCP Protocol 2026_07_28 The set of notification types a client may opt in to on a {@link SubscriptionsListenRequestsubscriptions/listen} request. Each notification type is opt-in; the server MUST NOT send notification types the client has not explicitly requested here.
JSON schema
{
"description": "The set of notification types a client may opt in to on a\n{@link SubscriptionsListenRequestsubscriptions/listen} request.\n\nEach notification type is **opt-in**; the server **MUST NOT** send\nnotification types the client has not explicitly requested here.",
"type": "object",
"properties": {
"promptsListChanged": {
"description": "If true, receive {@link PromptListChangedNotificationnotifications/prompts/list_changed}.",
"type": "boolean"
},
"resourceSubscriptions": {
"description": "Subscribe to {@link ResourceUpdatedNotificationnotifications/resources/updated} for these resource URIs.\nReplaces the former resources/subscribe RPC.",
"type": "array",
"items": {
"type": "string"
}
},
"resourcesListChanged": {
"description": "If true, receive {@link ResourceListChangedNotificationnotifications/resources/list_changed}.",
"type": "boolean"
},
"toolsListChanged": {
"description": "If true, receive {@link ToolListChangedNotificationnotifications/tools/list_changed}.",
"type": "boolean"
}
}
}Fields§
§prompts_list_changed: Option<bool>If true, receive {@link PromptListChangedNotificationnotifications/prompts/list_changed}.
resource_subscriptions: Vec<String>Subscribe to {@link ResourceUpdatedNotificationnotifications/resources/updated} for these resource URIs. Replaces the former resources/subscribe RPC.
resources_list_changed: Option<bool>If true, receive {@link ResourceListChangedNotificationnotifications/resources/list_changed}.
tools_list_changed: Option<bool>If true, receive {@link ToolListChangedNotificationnotifications/tools/list_changed}.
Trait Implementations§
Source§impl Clone for SubscriptionFilter
impl Clone for SubscriptionFilter
Source§fn clone(&self) -> SubscriptionFilter
fn clone(&self) -> SubscriptionFilter
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 SubscriptionFilter
impl Debug for SubscriptionFilter
Source§impl Default for SubscriptionFilter
impl Default for SubscriptionFilter
Source§fn default() -> SubscriptionFilter
fn default() -> SubscriptionFilter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubscriptionFilter
impl<'de> Deserialize<'de> for SubscriptionFilter
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 SubscriptionFilter
impl RefUnwindSafe for SubscriptionFilter
impl Send for SubscriptionFilter
impl Sync for SubscriptionFilter
impl Unpin for SubscriptionFilter
impl UnsafeUnpin for SubscriptionFilter
impl UnwindSafe for SubscriptionFilter
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