pub struct OpenAIToolCall {
pub id: String,
pub call_type: String,
pub function: OpenAIFunctionCall,
}
Expand description
OpenAI tool call format.
Fields§
§id: String
§call_type: String
§function: OpenAIFunctionCall
Trait Implementations§
Source§impl Clone for OpenAIToolCall
impl Clone for OpenAIToolCall
Source§fn clone(&self) -> OpenAIToolCall
fn clone(&self) -> OpenAIToolCall
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 OpenAIToolCall
impl Debug for OpenAIToolCall
Source§impl<'de> Deserialize<'de> for OpenAIToolCall
impl<'de> Deserialize<'de> for OpenAIToolCall
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 From<&OpenAIToolCall> for ToolCall
impl From<&OpenAIToolCall> for ToolCall
Source§fn from(openai_tool_call: &OpenAIToolCall) -> Self
fn from(openai_tool_call: &OpenAIToolCall) -> Self
Converts to this type from the input type.
Source§impl From<OpenAIToolCall> for ToolCall
impl From<OpenAIToolCall> for ToolCall
Source§fn from(openai_tool_call: OpenAIToolCall) -> Self
fn from(openai_tool_call: OpenAIToolCall) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpenAIToolCall
impl RefUnwindSafe for OpenAIToolCall
impl Send for OpenAIToolCall
impl Sync for OpenAIToolCall
impl Unpin for OpenAIToolCall
impl UnwindSafe for OpenAIToolCall
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