pub enum ConversationMessage {
User(String),
Assistant(String),
}Expand description
A message in a conversation.
Represents either a user message or an assistant response in the conversation history.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ConversationMessage
impl Clone for ConversationMessage
Source§fn clone(&self) -> ConversationMessage
fn clone(&self) -> ConversationMessage
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 ConversationMessage
impl RefUnwindSafe for ConversationMessage
impl Send for ConversationMessage
impl Sync for ConversationMessage
impl Unpin for ConversationMessage
impl UnwindSafe for ConversationMessage
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