pub struct ChatCompletionMessageToolCall {
pub id: String,
pub type: ChatCompletionToolType,
pub function: FunctionCall,
}
Fields§
§id: String
The ID of the tool call.
type: ChatCompletionToolType
The type of the tool. Currently, only function
is supported.
function: FunctionCall
The function that the model called.
Trait Implementations§
Source§impl Clone for ChatCompletionMessageToolCall
impl Clone for ChatCompletionMessageToolCall
Source§fn clone(&self) -> ChatCompletionMessageToolCall
fn clone(&self) -> ChatCompletionMessageToolCall
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<'de> Deserialize<'de> for ChatCompletionMessageToolCall
impl<'de> Deserialize<'de> for ChatCompletionMessageToolCall
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 ChatCompletionMessageToolCall
impl PartialEq for ChatCompletionMessageToolCall
Source§fn eq(&self, other: &ChatCompletionMessageToolCall) -> bool
fn eq(&self, other: &ChatCompletionMessageToolCall) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatCompletionMessageToolCall
Auto Trait Implementations§
impl Freeze for ChatCompletionMessageToolCall
impl RefUnwindSafe for ChatCompletionMessageToolCall
impl Send for ChatCompletionMessageToolCall
impl Sync for ChatCompletionMessageToolCall
impl Unpin for ChatCompletionMessageToolCall
impl UnwindSafe for ChatCompletionMessageToolCall
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