pub struct WebMcpPropertySchema {
pub prop_type: String,
pub description: Option<String>,
pub default: Option<Value>,
pub enum_values: Option<Vec<Value>>,
}Expand description
Schema for a single property within a tool’s input.
Fields§
§prop_type: StringJSON Schema type (string, number, boolean, object, array).
description: Option<String>Human-readable description of this parameter.
default: Option<Value>Default value (if any).
enum_values: Option<Vec<Value>>Allowed values (enum constraint).
Trait Implementations§
Source§impl Clone for WebMcpPropertySchema
impl Clone for WebMcpPropertySchema
Source§fn clone(&self) -> WebMcpPropertySchema
fn clone(&self) -> WebMcpPropertySchema
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 WebMcpPropertySchema
impl ComposeSchema for WebMcpPropertySchema
Source§impl Debug for WebMcpPropertySchema
impl Debug for WebMcpPropertySchema
Source§impl<'de> Deserialize<'de> for WebMcpPropertySchema
impl<'de> Deserialize<'de> for WebMcpPropertySchema
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 WebMcpPropertySchema
impl PartialEq for WebMcpPropertySchema
Source§impl Serialize for WebMcpPropertySchema
impl Serialize for WebMcpPropertySchema
Source§impl ToSchema for WebMcpPropertySchema
impl ToSchema for WebMcpPropertySchema
impl StructuralPartialEq for WebMcpPropertySchema
Auto Trait Implementations§
impl Freeze for WebMcpPropertySchema
impl RefUnwindSafe for WebMcpPropertySchema
impl Send for WebMcpPropertySchema
impl Sync for WebMcpPropertySchema
impl Unpin for WebMcpPropertySchema
impl UnwindSafe for WebMcpPropertySchema
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