pub struct ChatCompletionMessageToolCallChunk {
pub index: i64,
pub id: Option<String>,
pub type: Option<ChatCompletionMessageToolCallChunkType>,
pub function: Option<ChatCompletionMessageToolCallChunkFunction>,
}
Fields§
§index: i64
§id: Option<String>
The ID of the tool call.
type: Option<ChatCompletionMessageToolCallChunkType>
The type of the tool. Currently, only function
is supported.
function: Option<ChatCompletionMessageToolCallChunkFunction>
Implementations§
Source§impl ChatCompletionMessageToolCallChunk
impl ChatCompletionMessageToolCallChunk
Sourcepub fn builder() -> ChatCompletionMessageToolCallChunkBuilder<((), (), (), ())>
pub fn builder() -> ChatCompletionMessageToolCallChunkBuilder<((), (), (), ())>
Create a builder for building ChatCompletionMessageToolCallChunk
.
On the builder, call .index(...)
, .id(...)
(optional), .r#type(...)
(optional), .function(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ChatCompletionMessageToolCallChunk
.
Trait Implementations§
Source§impl Clone for ChatCompletionMessageToolCallChunk
impl Clone for ChatCompletionMessageToolCallChunk
Source§fn clone(&self) -> ChatCompletionMessageToolCallChunk
fn clone(&self) -> ChatCompletionMessageToolCallChunk
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for ChatCompletionMessageToolCallChunk
impl<'de> Deserialize<'de> for ChatCompletionMessageToolCallChunk
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 ChatCompletionMessageToolCallChunk
impl PartialEq for ChatCompletionMessageToolCallChunk
Source§fn eq(&self, other: &ChatCompletionMessageToolCallChunk) -> bool
fn eq(&self, other: &ChatCompletionMessageToolCallChunk) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatCompletionMessageToolCallChunk
Auto Trait Implementations§
impl Freeze for ChatCompletionMessageToolCallChunk
impl RefUnwindSafe for ChatCompletionMessageToolCallChunk
impl Send for ChatCompletionMessageToolCallChunk
impl Sync for ChatCompletionMessageToolCallChunk
impl Unpin for ChatCompletionMessageToolCallChunk
impl UnwindSafe for ChatCompletionMessageToolCallChunk
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