pub struct NewMessage {
pub conversation_id: i64,
pub role: MessageRole,
pub content: String,
pub metadata: Option<Value>,
}Expand description
Data for creating a new message.
Fields§
§conversation_id: i64§role: MessageRole§content: String§metadata: Option<Value>Optional JSON metadata for deep research state, tool usage, etc.
Trait Implementations§
Source§impl Clone for NewMessage
impl Clone for NewMessage
Source§fn clone(&self) -> NewMessage
fn clone(&self) -> NewMessage
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 NewMessage
impl RefUnwindSafe for NewMessage
impl Send for NewMessage
impl Sync for NewMessage
impl Unpin for NewMessage
impl UnwindSafe for NewMessage
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