pub struct ToolBuilder { /* private fields */ }
Expand description
Builder for creating tools with fluent API
Implementationsยง
Sourceยงimpl ToolBuilder
impl ToolBuilder
Sourcepub fn description<S: Into<String>>(self, description: S) -> Self
pub fn description<S: Into<String>>(self, description: S) -> Self
Set the tool description
Sourcepub fn build<H>(self, handler: H) -> McpResult<Tool>where
H: ToolHandler + 'static,
pub fn build<H>(self, handler: H) -> McpResult<Tool>where
H: ToolHandler + 'static,
Build the tool with the given handler
Auto Trait Implementationsยง
impl Freeze for ToolBuilder
impl RefUnwindSafe for ToolBuilder
impl Send for ToolBuilder
impl Sync for ToolBuilder
impl Unpin for ToolBuilder
impl UnwindSafe for ToolBuilder
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