pub struct ToolsNamespace { /* private fields */ }Expand description
Tools operations namespace
Implementations§
Source§impl ToolsNamespace
impl ToolsNamespace
Sourcepub async fn insert(&self, tool: InsertToolBody) -> Result<()>
pub async fn insert(&self, tool: InsertToolBody) -> Result<()>
Insert a tool
Sourcepub async fn update(&self, tool: UpdateToolBody) -> Result<Value>
pub async fn update(&self, tool: UpdateToolBody) -> Result<Value>
Update a tool
Sourcepub async fn execute<T>(
&self,
tools: ExecuteToolsBody,
) -> Result<ExecuteToolsParsedResponse<T>>where
T: for<'de> Deserialize<'de>,
pub async fn execute<T>(
&self,
tools: ExecuteToolsBody,
) -> Result<ExecuteToolsParsedResponse<T>>where
T: for<'de> Deserialize<'de>,
Execute tools
Trait Implementations§
Source§impl Clone for ToolsNamespace
impl Clone for ToolsNamespace
Source§fn clone(&self) -> ToolsNamespace
fn clone(&self) -> ToolsNamespace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ToolsNamespace
impl !UnwindSafe for ToolsNamespace
impl Freeze for ToolsNamespace
impl Send for ToolsNamespace
impl Sync for ToolsNamespace
impl Unpin for ToolsNamespace
impl UnsafeUnpin for ToolsNamespace
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