pub trait TypedExtractorHandler<S, T, I>:
Clone
+ Send
+ Sync
+ 'staticwhere
I: JsonSchema,{
type Future: Future<Output = Result<CallToolResult>> + Send;
// Required method
fn call(self, ctx: RequestContext, state: S, args: Value) -> Self::Future;
}Expand description
A handler that uses extractors with typed JSON input.
This trait is similar to ExtractorHandler but provides proper JSON
schema generation for the input type when Json<T> is used.
Required Associated Types§
Required Methods§
Sourcefn call(self, ctx: RequestContext, state: S, args: Value) -> Self::Future
fn call(self, ctx: RequestContext, state: S, args: Value) -> Self::Future
Call the handler with extracted values.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.