pub struct OpenAIToolCall {
pub id: String,
pub type: String,
pub extra_content: Option<Value>,
pub function: OpenAIFunctionCall,
}Expand description
OpenAI-compatible tool call payload.
Fields§
§id: StringTool call ID.
type: StringTool type (typically function).
extra_content: Option<Value>Optional provider-specific metadata.
function: OpenAIFunctionCallFunction call details.
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 PartialEq for OpenAIToolCall
impl PartialEq for OpenAIToolCall
Source§impl Serialize for OpenAIToolCall
impl Serialize for OpenAIToolCall
impl StructuralPartialEq for OpenAIToolCall
Auto Trait Implementations§
impl Freeze for OpenAIToolCall
impl RefUnwindSafe for OpenAIToolCall
impl Send for OpenAIToolCall
impl Sync for OpenAIToolCall
impl Unpin for OpenAIToolCall
impl UnsafeUnpin 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