pub struct McpInput { /* private fields */ }Expand description
Shape-owned metadata for model-controlled MCP input.
This is metadata only. Protocol handling, JSON decoding, validation, and application authorization stay in MCP integration crates.
Implementations§
Source§impl McpInput
impl McpInput
Sourcepub const fn unsupported() -> McpInput
pub const fn unsupported() -> McpInput
No model-controlled MCP input is supported.
Sourcepub const fn scalar(kind: McpPrimitiveKind) -> McpInput
pub const fn scalar(kind: McpPrimitiveKind) -> McpInput
Accept a scalar of the given primitive kind.
Sourcepub const fn string_list() -> McpInput
pub const fn string_list() -> McpInput
Accept an ordered array of strings.
Sourcepub const fn boolean_list() -> McpInput
pub const fn boolean_list() -> McpInput
Accept an ordered array of booleans.
Sourcepub const fn integer_list() -> McpInput
pub const fn integer_list() -> McpInput
Accept an ordered array of integers.
Sourcepub const fn number_list() -> McpInput
pub const fn number_list() -> McpInput
Accept an ordered array of numbers.
Sourcepub const fn decimal_list() -> McpInput
pub const fn decimal_list() -> McpInput
Accept an ordered array of decimals encoded as JSON numbers or strings.
Sourcepub const fn date_time_list() -> McpInput
pub const fn date_time_list() -> McpInput
Accept an ordered array of RFC 3339 date-time strings.
Sourcepub const fn list(items: McpPrimitiveKind) -> McpInput
pub const fn list(items: McpPrimitiveKind) -> McpInput
Accept an ordered array of primitive values.
Sourcepub const fn string_set() -> McpInput
pub const fn string_set() -> McpInput
Accept a unique array of strings.
Sourcepub const fn boolean_set() -> McpInput
pub const fn boolean_set() -> McpInput
Accept a unique array of booleans.
Sourcepub const fn integer_set() -> McpInput
pub const fn integer_set() -> McpInput
Accept a unique array of integers.
Sourcepub const fn number_set() -> McpInput
pub const fn number_set() -> McpInput
Accept a unique array of numbers.
Sourcepub const fn decimal_set() -> McpInput
pub const fn decimal_set() -> McpInput
Accept a unique array of decimals encoded as JSON numbers or strings.
Sourcepub const fn date_time_set() -> McpInput
pub const fn date_time_set() -> McpInput
Accept a unique array of RFC 3339 date-time strings.
Sourcepub const fn set(items: McpPrimitiveKind) -> McpInput
pub const fn set(items: McpPrimitiveKind) -> McpInput
Accept a unique array of primitive values.
Sourcepub const fn decimal_range() -> McpInput
pub const fn decimal_range() -> McpInput
Accept a decimal { "min": ..., "max": ... } range object.
Sourcepub const fn integer_range() -> McpInput
pub const fn integer_range() -> McpInput
Accept an integer { "min": ..., "max": ... } range object.
Sourcepub const fn number_range() -> McpInput
pub const fn number_range() -> McpInput
Accept a number { "min": ..., "max": ... } range object.
Sourcepub const fn date_range() -> McpInput
pub const fn date_range() -> McpInput
Accept a date { "min": ..., "max": ... } range object.
Sourcepub const fn date_time_range() -> McpInput
pub const fn date_time_range() -> McpInput
Accept a date-time { "min": ..., "max": ... } range object.
Sourcepub const fn range(bound: McpRangeBoundKind) -> McpInput
pub const fn range(bound: McpRangeBoundKind) -> McpInput
Accept a { "min": ..., "max": ... } range object of the given kind.
Sourcepub const fn input_shape(self) -> McpInputShape
pub const fn input_shape(self) -> McpInputShape
Return the structured input shape exposed to MCP integrations.
Trait Implementations§
impl Copy for McpInput
impl Eq for McpInput
impl StructuralPartialEq for McpInput
Auto Trait Implementations§
impl Freeze for McpInput
impl RefUnwindSafe for McpInput
impl Send for McpInput
impl Sync for McpInput
impl Unpin for McpInput
impl UnsafeUnpin for McpInput
impl UnwindSafe for McpInput
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
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,
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
key and return true if they are equal.