pub struct SubscriptionFilter {
pub tools_list_changed: Option<bool>,
pub prompts_list_changed: Option<bool>,
pub resources_list_changed: Option<bool>,
pub resource_subscriptions: Option<Vec<String>>,
pub task_ids: Option<Vec<String>>,
}Expand description
Notification types a client opts in to on a subscriptions/listen stream
(SEP-2575). Replaces the 2025-11-25 resources/subscribe RPC. The server
MUST NOT send a notification type the client did not request.
Fields§
§tools_list_changed: Option<bool>Receive notifications/tools/list_changed.
prompts_list_changed: Option<bool>Receive notifications/prompts/list_changed.
resources_list_changed: Option<bool>Receive notifications/resources/list_changed.
resource_subscriptions: Option<Vec<String>>Resource URIs to receive notifications/resources/updated for.
Replaces the former resources/subscribe RPC.
task_ids: Option<Vec<String>>Task IDs to receive notifications/tasks for (SEP-2663). Unlike the
list-changed flags this names individual tasks, so a client observes
only the tasks it created. A client that sets this without declaring
the io.modelcontextprotocol/tasks extension is answered with
-32021.
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<SubscriptionFilter, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubscriptionFilter, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SubscriptionFilter
impl Serialize for SubscriptionFilter
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 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