pub struct ChatCompletionResponseStreamMessage {
pub index: u32,
pub delta: ChatCompletionStreamResponseDelta,
pub finish_reason: Option<FinishReason>,
}
Fields§
§index: u32
The index of the choice in the list of choices.
delta: ChatCompletionStreamResponseDelta
§finish_reason: Option<FinishReason>
Trait Implementations§
source§impl Clone for ChatCompletionResponseStreamMessage
impl Clone for ChatCompletionResponseStreamMessage
source§fn clone(&self) -> ChatCompletionResponseStreamMessage
fn clone(&self) -> ChatCompletionResponseStreamMessage
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 moresource§impl<'de> Deserialize<'de> for ChatCompletionResponseStreamMessage
impl<'de> Deserialize<'de> for ChatCompletionResponseStreamMessage
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 ChatCompletionResponseStreamMessage
impl PartialEq for ChatCompletionResponseStreamMessage
source§fn eq(&self, other: &ChatCompletionResponseStreamMessage) -> bool
fn eq(&self, other: &ChatCompletionResponseStreamMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ChatCompletionResponseStreamMessage
Auto Trait Implementations§
impl RefUnwindSafe for ChatCompletionResponseStreamMessage
impl Send for ChatCompletionResponseStreamMessage
impl Sync for ChatCompletionResponseStreamMessage
impl Unpin for ChatCompletionResponseStreamMessage
impl UnwindSafe for ChatCompletionResponseStreamMessage
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