pub struct SearchFtsTool;Expand description
Search a full-text search index using SQLite’s FTS5 MATCH syntax. Returns
results ranked by BM25 relevance with highlighted snippets showing where the
query matched. The FTS table must have been created previously (e.g. via
create_fts_index).
Trait Implementations§
Source§impl Clone for SearchFtsTool
impl Clone for SearchFtsTool
Source§fn clone(&self) -> SearchFtsTool
fn clone(&self) -> SearchFtsTool
Returns a duplicate of the value. Read more
1.0.0 · 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 SearchFtsTool
impl Debug for SearchFtsTool
Source§impl Default for SearchFtsTool
impl Default for SearchFtsTool
Source§fn default() -> SearchFtsTool
fn default() -> SearchFtsTool
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SearchFtsTool
impl<'de> Deserialize<'de> for SearchFtsTool
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 Hash for SearchFtsTool
impl Hash for SearchFtsTool
Source§impl JsonSchema for SearchFtsTool
impl JsonSchema for SearchFtsTool
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for SearchFtsTool
impl Ord for SearchFtsTool
Source§fn cmp(&self, other: &SearchFtsTool) -> Ordering
fn cmp(&self, other: &SearchFtsTool) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SearchFtsTool
impl PartialEq for SearchFtsTool
Source§impl PartialOrd for SearchFtsTool
impl PartialOrd for SearchFtsTool
Source§impl Serialize for SearchFtsTool
impl Serialize for SearchFtsTool
Source§impl SqliteServerTool for SearchFtsTool
impl SqliteServerTool for SearchFtsTool
Source§type Context = McpServerSqlite
type Context = McpServerSqlite
The server type passed to the handler on each invocation, typically
McpServerSqlite.Source§type Error = ToolError<SearchFtsError>
type Error = ToolError<SearchFtsError>
The error type returned by the handler. Must implement
IntoContents so
rmcp can render it as error content.Source§type Input = SearchFtsInput
type Input = SearchFtsInput
The deserialized input parameters received from the MCP client.
Source§type Output = SearchFtsOutput
type Output = SearchFtsOutput
The structured output returned to the MCP client on success.
Source§fn handle(
ctx: &Self::Context,
input: Self::Input,
) -> Result<Self::Output, Self::Error>
fn handle( ctx: &Self::Context, input: Self::Input, ) -> Result<Self::Output, Self::Error>
Executes the tool’s logic against the given context and input. Called
synchronously on the tokio blocking thread pool.
Source§fn tool() -> Tool
fn tool() -> Tool
Builds the rmcp
Tool definition for this tool, including its name,
description (extracted from the JsonSchema derive), input schema, and
output schema.Source§fn handler_func() -> fn(&<Self as SqliteServerTool>::Context, Parameters<<Self as SqliteServerTool>::Input>) -> Result<Json<<Self as SqliteServerTool>::Output>, <Self as SqliteServerTool>::Error>
fn handler_func() -> fn(&<Self as SqliteServerTool>::Context, Parameters<<Self as SqliteServerTool>::Input>) -> Result<Json<<Self as SqliteServerTool>::Output>, <Self as SqliteServerTool>::Error>
Returns a closure that deserializes the input parameters, calls
handle, and wraps the output in Json for structured MCP responses.
Every invocation is automatically traced with the tool name, duration,
and outcome. The closure is compatible with ToolRouter::with_route.impl Copy for SearchFtsTool
impl Eq for SearchFtsTool
impl StructuralPartialEq for SearchFtsTool
Auto Trait Implementations§
impl Freeze for SearchFtsTool
impl RefUnwindSafe for SearchFtsTool
impl Send for SearchFtsTool
impl Sync for SearchFtsTool
impl Unpin for SearchFtsTool
impl UnsafeUnpin for SearchFtsTool
impl UnwindSafe for SearchFtsTool
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