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