pub struct ChatChoiceMessageStream {
pub content: Option<String>,
pub refusal: Option<String>,
pub tool_calls: Option<Vec<ChatMessageToolCall>>,
pub role: Option<String>,
pub function_call: Option<ChatMessageFunctionCall>,
}
Fields§
§content: Option<String>
The contents of the message.
refusal: Option<String>
The refusal message generated by the model.
tool_calls: Option<Vec<ChatMessageToolCall>>
The tool calls generated by the model, such as function calls.
role: Option<String>
The role of the author of this message.
function_call: Option<ChatMessageFunctionCall>
Deprecated and replaced by tool_calls. The name and arguments of a function that should be called, as generated by the model.
Trait Implementations§
Source§impl Clone for ChatChoiceMessageStream
impl Clone for ChatChoiceMessageStream
Source§fn clone(&self) -> ChatChoiceMessageStream
fn clone(&self) -> ChatChoiceMessageStream
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 Debug for ChatChoiceMessageStream
impl Debug for ChatChoiceMessageStream
Source§impl<'de> Deserialize<'de> for ChatChoiceMessageStream
impl<'de> Deserialize<'de> for ChatChoiceMessageStream
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 ChatChoiceMessageStream
impl PartialEq for ChatChoiceMessageStream
Source§fn eq(&self, other: &ChatChoiceMessageStream) -> bool
fn eq(&self, other: &ChatChoiceMessageStream) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for ChatChoiceMessageStream
impl Serialize for ChatChoiceMessageStream
impl StructuralPartialEq for ChatChoiceMessageStream
Auto Trait Implementations§
impl Freeze for ChatChoiceMessageStream
impl RefUnwindSafe for ChatChoiceMessageStream
impl Send for ChatChoiceMessageStream
impl Sync for ChatChoiceMessageStream
impl Unpin for ChatChoiceMessageStream
impl UnwindSafe for ChatChoiceMessageStream
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