pub struct StreamingPartEvent {
pub message_id: Uuid,
pub part: MessagePartInput,
}Expand description
Emits a complete typed message part mid-stream (StreamingEvent::Part):
images, videos, links, code, or an additional text part. The part is
appended to the message document and persisted on finalize.
Fields§
§message_id: UuidID of the assistant message this part belongs to.
part: MessagePartInputThe typed part to append (type + content + optional citations).
Trait Implementations§
Source§impl Clone for StreamingPartEvent
impl Clone for StreamingPartEvent
Source§fn clone(&self) -> StreamingPartEvent
fn clone(&self) -> StreamingPartEvent
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 StreamingPartEvent
impl Debug for StreamingPartEvent
Source§impl<'de> Deserialize<'de> for StreamingPartEvent
impl<'de> Deserialize<'de> for StreamingPartEvent
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 StreamingPartEvent
impl RefUnwindSafe for StreamingPartEvent
impl Send for StreamingPartEvent
impl Sync for StreamingPartEvent
impl Unpin for StreamingPartEvent
impl UnsafeUnpin for StreamingPartEvent
impl UnwindSafe for StreamingPartEvent
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