pub struct UserMessageItem {
pub id: String,
pub content: Vec<UserMessageContent>,
}Expand description
A user message item — the prompt the user sent for the current turn.
Emitted by the app-server as the first item in a turn. The exec JSONL protocol does not typically emit this item kind.
Fields§
§id: String§content: Vec<UserMessageContent>Trait Implementations§
Source§impl Clone for UserMessageItem
impl Clone for UserMessageItem
Source§fn clone(&self) -> UserMessageItem
fn clone(&self) -> UserMessageItem
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 UserMessageItem
impl Debug for UserMessageItem
Source§impl<'de> Deserialize<'de> for UserMessageItem
impl<'de> Deserialize<'de> for UserMessageItem
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 UserMessageItem
impl RefUnwindSafe for UserMessageItem
impl Send for UserMessageItem
impl Sync for UserMessageItem
impl Unpin for UserMessageItem
impl UnsafeUnpin for UserMessageItem
impl UnwindSafe for UserMessageItem
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