pub struct ChatCompletionMessageToolCall {
pub id: String,
pub function: FunctionCall,
}Available on crate feature
chat-completion-types only.Fields§
§id: StringThe ID of the tool call.
function: FunctionCallThe function that the model called.
Trait Implementations§
Source§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 From<ChatCompletionMessageToolCall> for ChatCompletionMessageToolCalls
impl From<ChatCompletionMessageToolCall> for ChatCompletionMessageToolCalls
Source§fn from(value: ChatCompletionMessageToolCall) -> Self
fn from(value: ChatCompletionMessageToolCall) -> Self
Converts to this type from the input type.
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 UnsafeUnpin 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