pub enum StreamEvent<'a> {
Text(&'a str),
Reasoning(&'a str),
}Expand description
Events emitted during streaming completions.
Variants§
Text(&'a str)
Regular text content delta.
Reasoning(&'a str)
Reasoning/thinking content delta (model’s chain-of-thought).
Trait Implementations§
Source§impl<'a> Clone for StreamEvent<'a>
impl<'a> Clone for StreamEvent<'a>
Source§fn clone(&self) -> StreamEvent<'a>
fn clone(&self) -> StreamEvent<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for StreamEvent<'a>
impl<'a> RefUnwindSafe for StreamEvent<'a>
impl<'a> Send for StreamEvent<'a>
impl<'a> Sync for StreamEvent<'a>
impl<'a> Unpin for StreamEvent<'a>
impl<'a> UnsafeUnpin for StreamEvent<'a>
impl<'a> UnwindSafe for StreamEvent<'a>
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