pub struct ToolEntry<M> {
pub func: Arc<ToolFunc>,
pub decl: FunctionDecl<'static>,
pub meta: M,
}Expand description
One entry in a ToolCollection: callable function, schema, and the
metadata typed against the collection’s M parameter.
Fields§
§func: Arc<ToolFunc>§decl: FunctionDecl<'static>§meta: MTrait Implementations§
Auto Trait Implementations§
impl<M> Freeze for ToolEntry<M>where
M: Freeze,
impl<M> !RefUnwindSafe for ToolEntry<M>
impl<M> Send for ToolEntry<M>where
M: Send,
impl<M> Sync for ToolEntry<M>where
M: Sync,
impl<M> Unpin for ToolEntry<M>where
M: Unpin,
impl<M> UnsafeUnpin for ToolEntry<M>where
M: UnsafeUnpin,
impl<M> !UnwindSafe for ToolEntry<M>
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