pub enum RequestTool {
Function {
function: ToolFunction,
},
Custom {
custom: ToolCustom,
},
}
Variants§
Function
The type of the tool. Currently, only function
is supported.
Fields
§
function: ToolFunction
Custom
The type of the custom tool. Always custom
.
Fields
§
custom: ToolCustom
Properties of the custom tool.
Trait Implementations§
Source§impl Clone for RequestTool
impl Clone for RequestTool
Source§fn clone(&self) -> RequestTool
fn clone(&self) -> RequestTool
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RequestTool
impl Debug for RequestTool
Auto Trait Implementations§
impl Freeze for RequestTool
impl RefUnwindSafe for RequestTool
impl Send for RequestTool
impl Sync for RequestTool
impl Unpin for RequestTool
impl UnwindSafe for RequestTool
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