pub struct WebMcpInputSchema {
pub schema_type: String,
pub properties: HashMap<String, WebMcpPropertySchema>,
pub required: Vec<String>,
}Expand description
JSON Schema for tool input parameters.
Simplified representation of JSON Schema sufficient for WebMCP tool
input validation. Maps to the inputSchema field in registerTool.
Fields§
§schema_type: StringAlways “object” for tool inputs.
properties: HashMap<String, WebMcpPropertySchema>Property definitions keyed by parameter name.
required: Vec<String>Required parameter names.
Trait Implementations§
Source§impl Clone for WebMcpInputSchema
impl Clone for WebMcpInputSchema
Source§fn clone(&self) -> WebMcpInputSchema
fn clone(&self) -> WebMcpInputSchema
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 ComposeSchema for WebMcpInputSchema
impl ComposeSchema for WebMcpInputSchema
Source§impl Debug for WebMcpInputSchema
impl Debug for WebMcpInputSchema
Source§impl<'de> Deserialize<'de> for WebMcpInputSchema
impl<'de> Deserialize<'de> for WebMcpInputSchema
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 PartialEq for WebMcpInputSchema
impl PartialEq for WebMcpInputSchema
Source§impl Serialize for WebMcpInputSchema
impl Serialize for WebMcpInputSchema
Source§impl ToSchema for WebMcpInputSchema
impl ToSchema for WebMcpInputSchema
impl StructuralPartialEq for WebMcpInputSchema
Auto Trait Implementations§
impl Freeze for WebMcpInputSchema
impl RefUnwindSafe for WebMcpInputSchema
impl Send for WebMcpInputSchema
impl Sync for WebMcpInputSchema
impl Unpin for WebMcpInputSchema
impl UnwindSafe for WebMcpInputSchema
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