pub struct BazaarMcpInput {
pub tool: String,
pub input_schema: Value,
pub description: Option<String>,
pub transport: Option<McpTransport>,
pub example: Option<Value>,
}Expand description
MCP tool input specification.
Describes an MCP tool’s name, input schema, and optional metadata.
Fields§
§tool: StringMCP tool name (matches what’s passed to tools/call).
input_schema: ValueJSON Schema for the tool’s arguments, following the MCP Tool.inputSchema format.
description: Option<String>Human-readable description of the tool.
transport: Option<McpTransport>MCP transport protocol. One of "streamable-http" or "sse".
Defaults to "streamable-http" if omitted.
example: Option<Value>Example arguments object.
Implementations§
Source§impl BazaarMcpInput
impl BazaarMcpInput
Sourcepub fn builder() -> BazaarMcpInputBuilder
pub fn builder() -> BazaarMcpInputBuilder
Create an instance of BazaarMcpInput using the builder syntax
Trait Implementations§
Source§impl Clone for BazaarMcpInput
impl Clone for BazaarMcpInput
Source§fn clone(&self) -> BazaarMcpInput
fn clone(&self) -> BazaarMcpInput
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 Debug for BazaarMcpInput
impl Debug for BazaarMcpInput
Source§impl<'de> Deserialize<'de> for BazaarMcpInput
impl<'de> Deserialize<'de> for BazaarMcpInput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BazaarMcpInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BazaarMcpInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for BazaarMcpInput
impl JsonSchema for BazaarMcpInput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for BazaarMcpInput
impl Serialize for BazaarMcpInput
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for BazaarMcpInput
impl RefUnwindSafe for BazaarMcpInput
impl Send for BazaarMcpInput
impl Sync for BazaarMcpInput
impl Unpin for BazaarMcpInput
impl UnsafeUnpin for BazaarMcpInput
impl UnwindSafe for BazaarMcpInput
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