pub struct McpRange<T> {
pub min: Option<T>,
pub max: Option<T>,
}Expand description
Typed { "min": ..., "max": ... } range argument used by MCP tools.
Custom table filter shapes can use this as their RawValue when they want
derive-driven MCP decoding for range-shaped arguments.
Fields§
§min: Option<T>Inclusive lower range bound.
max: Option<T>Inclusive upper range bound.
Implementations§
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for McpRange<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for McpRange<T>where
T: Deserialize<'de>,
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
impl<T: Eq> Eq for McpRange<T>
Source§impl<T> McpJsonSchema for McpRange<T>where
T: McpJsonSchema,
impl<T> McpJsonSchema for McpRange<T>where
T: McpJsonSchema,
Source§fn json_schema() -> McpSchema
fn json_schema() -> McpSchema
Returns the JSON Schema for this type.
impl<T: PartialEq> StructuralPartialEq for McpRange<T>
Auto Trait Implementations§
impl<T> Freeze for McpRange<T>
impl<T> RefUnwindSafe for McpRange<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for McpRange<T>
impl<T> Sync for McpRange<T>
impl<T> Unpin for McpRange<T>
impl<T> UnsafeUnpin for McpRange<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for McpRange<T>where
Option<T>: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> McpToolValue for Twhere
T: McpJsonSchema + DeserializeOwned,
impl<T> McpToolValue for Twhere
T: McpJsonSchema + DeserializeOwned,
Source§fn tool_value_schema() -> McpSchema
fn tool_value_schema() -> McpSchema
Returns the schema used for this value inside an MCP argument object.
Source§fn from_tool_value(field: &str, value: Value) -> Result<T, McpToolError>
fn from_tool_value(field: &str, value: Value) -> Result<T, McpToolError>
Decodes one JSON field value into this type. Read more