pub struct TextAccumulator {
pub full_text: String,
pub refusal_text: String,
pub reasoning_text: String,
pub thinking_buffer: String,
pub is_thinking: bool,
}Expand description
Accumulated text content emitted across stream chunks.
Fields§
§full_text: StringAssistant text seen so far (with thinking tags stripped).
refusal_text: StringRefusal text emitted via delta.refusal.
reasoning_text: StringReasoning content captured from delta.reasoning_content or thinking
tags.
thinking_buffer: StringPartial buffer for unterminated <think> / <thought> tags split
across chunks.
is_thinking: boolTrue if the next text byte belongs to a thinking tag’s interior.
Trait Implementations§
Source§impl Clone for TextAccumulator
impl Clone for TextAccumulator
Source§fn clone(&self) -> TextAccumulator
fn clone(&self) -> TextAccumulator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TextAccumulator
impl Debug for TextAccumulator
Source§impl Default for TextAccumulator
impl Default for TextAccumulator
Source§fn default() -> TextAccumulator
fn default() -> TextAccumulator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TextAccumulator
impl RefUnwindSafe for TextAccumulator
impl Send for TextAccumulator
impl Sync for TextAccumulator
impl Unpin for TextAccumulator
impl UnsafeUnpin for TextAccumulator
impl UnwindSafe for TextAccumulator
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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