pub struct ToolEntry {
pub factory: ToolFactory,
pub group: Option<&'static str>,
}Expand description
Entry for auto-discovered tools registered via #[mcp_tool].
This struct is used internally by the inventory crate to collect
all tools defined with the #[mcp_tool] attribute at link time.
Fields§
§factory: ToolFactoryFactory function to create the tool.
group: Option<&'static str>The group this tool belongs to (if any).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolEntry
impl RefUnwindSafe for ToolEntry
impl Send for ToolEntry
impl Sync for ToolEntry
impl Unpin for ToolEntry
impl UnwindSafe for ToolEntry
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