pub struct TextChoiceStream {
pub text: String,
pub finish_reason: Option<FinishReason>,
pub index: usize,
}Expand description
Represents a choice stream with its associated delta change.
Fields§
§text: StringDelta change in the choice stream.
finish_reason: Option<FinishReason>Reason for finishing the choice stream.
index: usizeIndex of the choice stream.
Trait Implementations§
Source§impl Clone for TextChoiceStream
impl Clone for TextChoiceStream
Source§fn clone(&self) -> TextChoiceStream
fn clone(&self) -> TextChoiceStream
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 TextChoiceStream
impl Debug for TextChoiceStream
Source§impl<'de> Deserialize<'de> for TextChoiceStream
impl<'de> Deserialize<'de> for TextChoiceStream
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
Auto Trait Implementations§
impl Freeze for TextChoiceStream
impl RefUnwindSafe for TextChoiceStream
impl Send for TextChoiceStream
impl Sync for TextChoiceStream
impl Unpin for TextChoiceStream
impl UnwindSafe for TextChoiceStream
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