pub struct ToolObject {
pub tool_type: ToolType,
pub function: Function,
}Expand description
Represents a tool object with a type and function.
Fields§
§tool_type: ToolType§function: FunctionTrait Implementations§
Source§impl Clone for ToolObject
impl Clone for ToolObject
Source§fn clone(&self) -> ToolObject
fn clone(&self) -> ToolObject
Returns a copy 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 ToolObject
impl Debug for ToolObject
Source§impl<'de> Deserialize<'de> for ToolObject
impl<'de> Deserialize<'de> for ToolObject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ToolObject
impl PartialEq for ToolObject
Source§impl Serialize for ToolObject
impl Serialize for ToolObject
impl StructuralPartialEq for ToolObject
Auto Trait Implementations§
impl Freeze for ToolObject
impl RefUnwindSafe for ToolObject
impl Send for ToolObject
impl Sync for ToolObject
impl Unpin for ToolObject
impl UnwindSafe for ToolObject
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