#[non_exhaustive]pub struct SubscriptionFilterBuilder { /* private fields */ }Expand description
Builder for SubscriptionFilter.
Implementations§
Source§impl SubscriptionFilterBuilder
impl SubscriptionFilterBuilder
Sourcepub fn tools_list_changed(self) -> SubscriptionFilterBuilder
pub fn tools_list_changed(self) -> SubscriptionFilterBuilder
Opt in to notifications/tools/list_changed.
Sourcepub fn prompts_list_changed(self) -> SubscriptionFilterBuilder
pub fn prompts_list_changed(self) -> SubscriptionFilterBuilder
Opt in to notifications/prompts/list_changed.
Sourcepub fn resources_list_changed(self) -> SubscriptionFilterBuilder
pub fn resources_list_changed(self) -> SubscriptionFilterBuilder
Opt in to notifications/resources/list_changed.
Sourcepub fn resource_subscriptions(
self,
uris: impl IntoIterator<Item = impl Into<String>>,
) -> SubscriptionFilterBuilder
pub fn resource_subscriptions( self, uris: impl IntoIterator<Item = impl Into<String>>, ) -> SubscriptionFilterBuilder
Opt in to updates for all supplied resource URIs.
Sourcepub fn resource_subscription(
self,
uri: impl Into<String>,
) -> SubscriptionFilterBuilder
pub fn resource_subscription( self, uri: impl Into<String>, ) -> SubscriptionFilterBuilder
Add one resource URI to the update subscription set.
Sourcepub fn build(self) -> SubscriptionFilter
pub fn build(self) -> SubscriptionFilter
Build the filter.
Trait Implementations§
Source§impl Debug for SubscriptionFilterBuilder
impl Debug for SubscriptionFilterBuilder
Source§impl Default for SubscriptionFilterBuilder
impl Default for SubscriptionFilterBuilder
Source§fn default() -> SubscriptionFilterBuilder
fn default() -> SubscriptionFilterBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SubscriptionFilterBuilder
impl RefUnwindSafe for SubscriptionFilterBuilder
impl Send for SubscriptionFilterBuilder
impl Sync for SubscriptionFilterBuilder
impl Unpin for SubscriptionFilterBuilder
impl UnsafeUnpin for SubscriptionFilterBuilder
impl UnwindSafe for SubscriptionFilterBuilder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.