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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().