pub struct UserMessage {
pub id: String,
pub session_id: String,
pub turn_id: TurnId,
pub created_at: i64,
pub content: Vec<ContentBlock>,
}Expand description
A message from the user
Fields§
§id: StringUnique message ID
session_id: StringSession this message belongs to
turn_id: TurnIdTurn ID for conversation tracking
created_at: i64When the message was created (unix timestamp ms)
content: Vec<ContentBlock>Content blocks in this message
Trait Implementations§
Source§impl Clone for UserMessage
impl Clone for UserMessage
Source§fn clone(&self) -> UserMessage
fn clone(&self) -> UserMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UserMessage
impl RefUnwindSafe for UserMessage
impl Send for UserMessage
impl Sync for UserMessage
impl Unpin for UserMessage
impl UnwindSafe for UserMessage
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