pub struct SessionTurnStartedAction {
pub turn_id: String,
pub message: Message,
pub queued_message_id: Option<String>,
}Expand description
A new message has been sent to the agent, and a new turn starts.
A client is only allowed to send {@link MessageKind.User} messages.
Fields§
§turn_id: StringTurn identifier
message: MessageThe new message
queued_message_id: Option<String>If this turn was auto-started from a queued message, the ID of that message
Trait Implementations§
Source§impl Clone for SessionTurnStartedAction
impl Clone for SessionTurnStartedAction
Source§fn clone(&self) -> SessionTurnStartedAction
fn clone(&self) -> SessionTurnStartedAction
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 SessionTurnStartedAction
impl Debug for SessionTurnStartedAction
Source§impl<'de> Deserialize<'de> for SessionTurnStartedAction
impl<'de> Deserialize<'de> for SessionTurnStartedAction
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 SessionTurnStartedAction
impl PartialEq for SessionTurnStartedAction
Source§fn eq(&self, other: &SessionTurnStartedAction) -> bool
fn eq(&self, other: &SessionTurnStartedAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SessionTurnStartedAction
impl Serialize for SessionTurnStartedAction
impl StructuralPartialEq for SessionTurnStartedAction
Auto Trait Implementations§
impl Freeze for SessionTurnStartedAction
impl RefUnwindSafe for SessionTurnStartedAction
impl Send for SessionTurnStartedAction
impl Sync for SessionTurnStartedAction
impl Unpin for SessionTurnStartedAction
impl UnsafeUnpin for SessionTurnStartedAction
impl UnwindSafe for SessionTurnStartedAction
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