pub struct StreamingChunkEvent {
pub message_id: Uuid,
pub chunk: String,
}Expand description
A single text fragment appended to the assistant message in flight.
Fields§
§message_id: UuidID of the assistant message this chunk belongs to.
chunk: StringText payload to append to the message content.
Trait Implementations§
Source§impl Clone for StreamingChunkEvent
impl Clone for StreamingChunkEvent
Source§fn clone(&self) -> StreamingChunkEvent
fn clone(&self) -> StreamingChunkEvent
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 StreamingChunkEvent
impl Debug for StreamingChunkEvent
Source§impl<'de> Deserialize<'de> for StreamingChunkEvent
impl<'de> Deserialize<'de> for StreamingChunkEvent
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 StreamingChunkEvent
impl RefUnwindSafe for StreamingChunkEvent
impl Send for StreamingChunkEvent
impl Sync for StreamingChunkEvent
impl Unpin for StreamingChunkEvent
impl UnsafeUnpin for StreamingChunkEvent
impl UnwindSafe for StreamingChunkEvent
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