pub struct ToolCallFunction {
pub arguments: String,
pub name: String,
}
Fields§
§arguments: String
This is the arguments to call the function with
name: String
This is the name of the function to call
Implementations§
Source§impl ToolCallFunction
impl ToolCallFunction
pub fn new(arguments: String, name: String) -> ToolCallFunction
Trait Implementations§
Source§impl Clone for ToolCallFunction
impl Clone for ToolCallFunction
Source§fn clone(&self) -> ToolCallFunction
fn clone(&self) -> ToolCallFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ToolCallFunction
impl Debug for ToolCallFunction
Source§impl Default for ToolCallFunction
impl Default for ToolCallFunction
Source§fn default() -> ToolCallFunction
fn default() -> ToolCallFunction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolCallFunction
impl<'de> Deserialize<'de> for ToolCallFunction
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 ToolCallFunction
impl PartialEq for ToolCallFunction
Source§impl Serialize for ToolCallFunction
impl Serialize for ToolCallFunction
impl StructuralPartialEq for ToolCallFunction
Auto Trait Implementations§
impl Freeze for ToolCallFunction
impl RefUnwindSafe for ToolCallFunction
impl Send for ToolCallFunction
impl Sync for ToolCallFunction
impl Unpin for ToolCallFunction
impl UnwindSafe for ToolCallFunction
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