pub struct ChoiceChunk {
pub index: i32,
pub delta: Delta,
pub finish_reason: Option<String>,
pub logprobs: Option<LogProbs>,
}Expand description
A streaming response choice chunk.
Fields§
§index: i32Index of the choice.
delta: DeltaAdditional difference (delta) of the result.
finish_reason: Option<String>Finish reason.
logprobs: Option<LogProbs>The log probabilities of each output token.
Trait Implementations§
Source§impl Clone for ChoiceChunk
impl Clone for ChoiceChunk
Source§fn clone(&self) -> ChoiceChunk
fn clone(&self) -> ChoiceChunk
Returns a duplicate 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 ChoiceChunk
impl Debug for ChoiceChunk
Source§impl Default for ChoiceChunk
impl Default for ChoiceChunk
Source§fn default() -> ChoiceChunk
fn default() -> ChoiceChunk
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChoiceChunk
impl<'de> Deserialize<'de> for ChoiceChunk
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 ChoiceChunk
impl PartialEq for ChoiceChunk
Source§impl Serialize for ChoiceChunk
impl Serialize for ChoiceChunk
impl StructuralPartialEq for ChoiceChunk
Auto Trait Implementations§
impl Freeze for ChoiceChunk
impl RefUnwindSafe for ChoiceChunk
impl Send for ChoiceChunk
impl Sync for ChoiceChunk
impl Unpin for ChoiceChunk
impl UnwindSafe for ChoiceChunk
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