pub struct BazaarMcpInputBuilder<S = Empty>where
S: State,{ /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S> BazaarMcpInputBuilder<S>where
S: State,
impl<S> BazaarMcpInputBuilder<S>where
S: State,
Sourcepub fn build(self) -> BazaarMcpInputwhere
S: IsComplete,
pub fn build(self) -> BazaarMcpInputwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn tool(self, value: impl Into<String>) -> BazaarMcpInputBuilder<SetTool<S>>where
<S as State>::Tool: IsUnset,
pub fn tool(self, value: impl Into<String>) -> BazaarMcpInputBuilder<SetTool<S>>where
<S as State>::Tool: IsUnset,
Required.
MCP tool name (matches what’s passed to tools/call).
Sourcepub fn input_schema(
self,
value: Value,
) -> BazaarMcpInputBuilder<SetInputSchema<S>>where
<S as State>::InputSchema: IsUnset,
pub fn input_schema(
self,
value: Value,
) -> BazaarMcpInputBuilder<SetInputSchema<S>>where
<S as State>::InputSchema: IsUnset,
Required.
JSON Schema for the tool’s arguments, following the MCP Tool.inputSchema format.
Sourcepub fn description(
self,
value: impl Into<String>,
) -> BazaarMcpInputBuilder<SetDescription<S>>where
<S as State>::Description: IsUnset,
pub fn description(
self,
value: impl Into<String>,
) -> BazaarMcpInputBuilder<SetDescription<S>>where
<S as State>::Description: IsUnset,
Sourcepub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> BazaarMcpInputBuilder<SetDescription<S>>where
<S as State>::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> BazaarMcpInputBuilder<SetDescription<S>>where
<S as State>::Description: IsUnset,
Sourcepub fn transport(
self,
value: McpTransport,
) -> BazaarMcpInputBuilder<SetTransport<S>>where
<S as State>::Transport: IsUnset,
pub fn transport(
self,
value: McpTransport,
) -> BazaarMcpInputBuilder<SetTransport<S>>where
<S as State>::Transport: IsUnset,
Sourcepub fn maybe_transport(
self,
value: Option<McpTransport>,
) -> BazaarMcpInputBuilder<SetTransport<S>>where
<S as State>::Transport: IsUnset,
pub fn maybe_transport(
self,
value: Option<McpTransport>,
) -> BazaarMcpInputBuilder<SetTransport<S>>where
<S as State>::Transport: IsUnset,
Sourcepub fn example(self, value: Value) -> BazaarMcpInputBuilder<SetExample<S>>where
<S as State>::Example: IsUnset,
pub fn example(self, value: Value) -> BazaarMcpInputBuilder<SetExample<S>>where
<S as State>::Example: IsUnset,
Sourcepub fn maybe_example(
self,
value: Option<Value>,
) -> BazaarMcpInputBuilder<SetExample<S>>where
<S as State>::Example: IsUnset,
pub fn maybe_example(
self,
value: Option<Value>,
) -> BazaarMcpInputBuilder<SetExample<S>>where
<S as State>::Example: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for BazaarMcpInputBuilder<S>
impl<S> RefUnwindSafe for BazaarMcpInputBuilder<S>
impl<S> Send for BazaarMcpInputBuilder<S>
impl<S> Sync for BazaarMcpInputBuilder<S>
impl<S> Unpin for BazaarMcpInputBuilder<S>
impl<S> UnsafeUnpin for BazaarMcpInputBuilder<S>
impl<S> UnwindSafe for BazaarMcpInputBuilder<S>
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