pub struct ChatFinishedPayload {
pub chat_id: i64,
pub chat_uid: String,
pub message_id: String,
pub error: String,
pub error_message: String,
}Expand description
Payload of a chat_finished SSE event, observed once all message events
for this round have been sent, shortly before workflow_finished
Fields§
§chat_id: i64ID of the owning conversation
chat_uid: StringConversation identifier
message_id: StringMessage ID of this round (observed as a raw JSON number; accepts a
string too, see ChatStartedPayload::message_id)
error: StringError detail; empty on success
error_message: StringUser-facing error message; empty on success
Trait Implementations§
Source§impl Clone for ChatFinishedPayload
impl Clone for ChatFinishedPayload
Source§fn clone(&self) -> ChatFinishedPayload
fn clone(&self) -> ChatFinishedPayload
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 ChatFinishedPayload
impl Debug for ChatFinishedPayload
Source§impl Default for ChatFinishedPayload
impl Default for ChatFinishedPayload
Source§fn default() -> ChatFinishedPayload
fn default() -> ChatFinishedPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatFinishedPayload
impl<'de> Deserialize<'de> for ChatFinishedPayload
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 ChatFinishedPayload
impl RefUnwindSafe for ChatFinishedPayload
impl Send for ChatFinishedPayload
impl Sync for ChatFinishedPayload
impl Unpin for ChatFinishedPayload
impl UnsafeUnpin for ChatFinishedPayload
impl UnwindSafe for ChatFinishedPayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more