pub trait Filterable: Send + Sync { // Required method fn name(&self) -> &str; }
Trait for capabilities that can be filtered by session.
Implemented for Tool, Resource, and Prompt.
Tool
Resource
Prompt
Returns the name of this capability.
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".