pub struct ChatCompletionMessageCustomToolCall {
pub id: String,
pub custom: Custom,
}
Expand description
A call to a custom tool created by the model.
Fields§
§id: String
The ID of the tool call.
custom: Custom
The custom tool that the model called.
Implementations§
Source§impl ChatCompletionMessageCustomToolCall
impl ChatCompletionMessageCustomToolCall
Sourcepub fn builder() -> ChatCompletionMessageCustomToolCallBuilder<((), ())>
pub fn builder() -> ChatCompletionMessageCustomToolCallBuilder<((), ())>
Create a builder for building ChatCompletionMessageCustomToolCall
.
On the builder, call .id(...)
, .custom(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ChatCompletionMessageCustomToolCall
.
Trait Implementations§
Source§impl Clone for ChatCompletionMessageCustomToolCall
impl Clone for ChatCompletionMessageCustomToolCall
Source§fn clone(&self) -> ChatCompletionMessageCustomToolCall
fn clone(&self) -> ChatCompletionMessageCustomToolCall
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<'de> Deserialize<'de> for ChatCompletionMessageCustomToolCall
impl<'de> Deserialize<'de> for ChatCompletionMessageCustomToolCall
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 ChatCompletionMessageCustomToolCall
impl PartialEq for ChatCompletionMessageCustomToolCall
Source§fn eq(&self, other: &ChatCompletionMessageCustomToolCall) -> bool
fn eq(&self, other: &ChatCompletionMessageCustomToolCall) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatCompletionMessageCustomToolCall
Auto Trait Implementations§
impl Freeze for ChatCompletionMessageCustomToolCall
impl RefUnwindSafe for ChatCompletionMessageCustomToolCall
impl Send for ChatCompletionMessageCustomToolCall
impl Sync for ChatCompletionMessageCustomToolCall
impl Unpin for ChatCompletionMessageCustomToolCall
impl UnwindSafe for ChatCompletionMessageCustomToolCall
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