pub struct SearchFtsInput {
pub fts_table: String,
pub query: String,
pub limit: Option<i64>,
pub snippet_tokens: Option<i32>,
pub highlight_start: Option<String>,
pub highlight_end: Option<String>,
}Expand description
The input parameters for the search_fts tool.
Fields§
§fts_table: StringThe name of the FTS5 virtual table to search.
query: StringThe FTS5 MATCH query string (e.g. "sqlite AND indexing").
limit: Option<i64>Maximum number of results to return. Defaults to 10.
snippet_tokens: Option<i32>Maximum number of tokens per snippet. Defaults to 32.
highlight_start: Option<String>The string inserted before a matching term in snippets. Defaults to
<b>.
highlight_end: Option<String>The string inserted after a matching term in snippets. Defaults to
</b>.
Trait Implementations§
Source§impl Clone for SearchFtsInput
impl Clone for SearchFtsInput
Source§fn clone(&self) -> SearchFtsInput
fn clone(&self) -> SearchFtsInput
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 SearchFtsInput
impl Debug for SearchFtsInput
Source§impl<'de> Deserialize<'de> for SearchFtsInput
impl<'de> Deserialize<'de> for SearchFtsInput
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 SearchFtsInput
impl Hash for SearchFtsInput
Source§impl JsonSchema for SearchFtsInput
impl JsonSchema for SearchFtsInput
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 SearchFtsInput
impl Ord for SearchFtsInput
Source§fn cmp(&self, other: &SearchFtsInput) -> Ordering
fn cmp(&self, other: &SearchFtsInput) -> 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 SearchFtsInput
impl PartialEq for SearchFtsInput
Source§impl PartialOrd for SearchFtsInput
impl PartialOrd for SearchFtsInput
Source§impl Serialize for SearchFtsInput
impl Serialize for SearchFtsInput
impl Eq for SearchFtsInput
impl StructuralPartialEq for SearchFtsInput
Auto Trait Implementations§
impl Freeze for SearchFtsInput
impl RefUnwindSafe for SearchFtsInput
impl Send for SearchFtsInput
impl Sync for SearchFtsInput
impl Unpin for SearchFtsInput
impl UnsafeUnpin for SearchFtsInput
impl UnwindSafe for SearchFtsInput
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