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