pub struct StreamingErrorEvent {
pub message_id: Uuid,
pub error: String,
}Expand description
Signals a mid-stream failure; the assistant message may be incomplete.
Fields§
§message_id: UuidID of the assistant message that failed to stream.
error: StringHuman-readable error description (may include plugin error code).
Trait Implementations§
Source§impl Clone for StreamingErrorEvent
impl Clone for StreamingErrorEvent
Source§fn clone(&self) -> StreamingErrorEvent
fn clone(&self) -> StreamingErrorEvent
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 StreamingErrorEvent
impl Debug for StreamingErrorEvent
Source§impl<'de> Deserialize<'de> for StreamingErrorEvent
impl<'de> Deserialize<'de> for StreamingErrorEvent
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 StreamingErrorEvent
impl RefUnwindSafe for StreamingErrorEvent
impl Send for StreamingErrorEvent
impl Sync for StreamingErrorEvent
impl Unpin for StreamingErrorEvent
impl UnsafeUnpin for StreamingErrorEvent
impl UnwindSafe for StreamingErrorEvent
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