pub struct SubscriptionFilter {
pub prompts_list_changed: Option<bool>,
pub resource_subscriptions: Option<Vec<String>>,
pub resources_list_changed: Option<bool>,
pub tools_list_changed: Option<bool>,
pub additional: BTreeMap<String, Value>,
}Expand description
Final notification categories selected for a subscription stream.
Every present field is an explicit opt-in. false and an empty resource
list remain distinct from an omitted field on the wire.
Fields§
§prompts_list_changed: Option<bool>Receive prompt catalog change notifications when true.
resource_subscriptions: Option<Vec<String>>Resource URIs for update notifications.
resources_list_changed: Option<bool>Receive resource catalog change notifications when true.
tools_list_changed: Option<bool>Receive tool catalog change notifications when true.
additional: BTreeMap<String, Value>Future notification categories accepted by the final schema and retained without activating any extension behavior.
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
Source§impl PartialEq for SubscriptionFilter
impl PartialEq for SubscriptionFilter
Source§impl Serialize for SubscriptionFilter
impl Serialize for SubscriptionFilter
impl StructuralPartialEq for SubscriptionFilter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).