pub struct ChatPendingMessageSetAction {
pub kind: PendingMessageKind,
pub id: String,
pub message: Message,
}Expand description
A pending message was set (upsert semantics: creates or replaces).
For steering messages, this always replaces the single steering message.
For queued messages, if a message with the given id already exists it is
updated in place; otherwise it is appended to the queue. If the chat is
idle when a queued message is set, the server SHOULD immediately consume it
and start a new turn.
A client is only allowed to send {@link MessageKind.User} messages.
Fields§
§kind: PendingMessageKindWhether this is a steering or queued message
id: StringUnique identifier for this pending message
message: MessageThe message content
Trait Implementations§
Source§impl Clone for ChatPendingMessageSetAction
impl Clone for ChatPendingMessageSetAction
Source§fn clone(&self) -> ChatPendingMessageSetAction
fn clone(&self) -> ChatPendingMessageSetAction
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 ChatPendingMessageSetAction
impl Debug for ChatPendingMessageSetAction
Source§impl<'de> Deserialize<'de> for ChatPendingMessageSetAction
impl<'de> Deserialize<'de> for ChatPendingMessageSetAction
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
Source§impl PartialEq for ChatPendingMessageSetAction
impl PartialEq for ChatPendingMessageSetAction
Source§fn eq(&self, other: &ChatPendingMessageSetAction) -> bool
fn eq(&self, other: &ChatPendingMessageSetAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChatPendingMessageSetAction
Auto Trait Implementations§
impl Freeze for ChatPendingMessageSetAction
impl RefUnwindSafe for ChatPendingMessageSetAction
impl Send for ChatPendingMessageSetAction
impl Sync for ChatPendingMessageSetAction
impl Unpin for ChatPendingMessageSetAction
impl UnsafeUnpin for ChatPendingMessageSetAction
impl UnwindSafe for ChatPendingMessageSetAction
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