Struct async_openai::types::ChatCompletionMessageToolCall
source · 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
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ChatCompletionMessageToolCall
Auto Trait Implementations§
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