pub struct ChatCompletionStreamResponseDelta {
    pub content: Option<String>,
    pub function_call: ChatCompletionStreamResponseDelta_FunctionCall,
    pub tool_calls: Vec<ChatCompletionMessageToolCallChunk>,
    pub role: String,
    pub refusal: Option<String>,
}Expand description
A chat completion delta generated by streamed model responses.
Fields§
§content: Option<String>The contents of the chunk message.
function_call: ChatCompletionStreamResponseDelta_FunctionCall§tool_calls: Vec<ChatCompletionMessageToolCallChunk>§role: StringThe role of the author of this message.
refusal: Option<String>The refusal message generated by the model.
Trait Implementations§
Source§impl Clone for ChatCompletionStreamResponseDelta
 
impl Clone for ChatCompletionStreamResponseDelta
Source§fn clone(&self) -> ChatCompletionStreamResponseDelta
 
fn clone(&self) -> ChatCompletionStreamResponseDelta
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 moreAuto Trait Implementations§
impl Freeze for ChatCompletionStreamResponseDelta
impl RefUnwindSafe for ChatCompletionStreamResponseDelta
impl Send for ChatCompletionStreamResponseDelta
impl Sync for ChatCompletionStreamResponseDelta
impl Unpin for ChatCompletionStreamResponseDelta
impl UnwindSafe for ChatCompletionStreamResponseDelta
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