pub struct SessionPendingMessageSetAction {
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 session 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 SessionPendingMessageSetAction
impl Clone for SessionPendingMessageSetAction
Source§fn clone(&self) -> SessionPendingMessageSetAction
fn clone(&self) -> SessionPendingMessageSetAction
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<'de> Deserialize<'de> for SessionPendingMessageSetAction
impl<'de> Deserialize<'de> for SessionPendingMessageSetAction
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 SessionPendingMessageSetAction
impl PartialEq for SessionPendingMessageSetAction
Source§fn eq(&self, other: &SessionPendingMessageSetAction) -> bool
fn eq(&self, other: &SessionPendingMessageSetAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionPendingMessageSetAction
Auto Trait Implementations§
impl Freeze for SessionPendingMessageSetAction
impl RefUnwindSafe for SessionPendingMessageSetAction
impl Send for SessionPendingMessageSetAction
impl Sync for SessionPendingMessageSetAction
impl Unpin for SessionPendingMessageSetAction
impl UnsafeUnpin for SessionPendingMessageSetAction
impl UnwindSafe for SessionPendingMessageSetAction
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